Your IP : 216.73.217.79


Current Path : /var/www/v3.cesa.co.za/src/UserBundle/Command/
Upload File :
Current File : /var/www/v3.cesa.co.za/src/UserBundle/Command/UserNetworkCommand.php

<?php

namespace App\UserBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use App\UserBundle\Entity\UserList;

/**
 * SF Guard User Command
 *
 * @author Otto Saayman <otto@igotafrica.com>
 * @package UserBundle
 * @subpackage Controller
 * @version 0.0.1
 */
class UserNetworkCommand extends ContainerAwareCommand {

    protected function configure() {
        $this->setName('iga:user:network')
            ->setDescription('Update the networks of all users');
    }

    protected function execute(InputInterface $input, OutputInterface $output) {

        $this->getContainer()->get('user_network.manager')->updateNetworks();

        $output->writeln(sprintf('Network updates done'));
    }

}