Newscoop\Tools\Console\Command\CreateUserCommand::execute PHP Method

execute() protected method

See also: Console\Command\Command
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $container = $this->getApplication()->getKernel()->getContainer();
        $userService = $container->getService('user');
        $userService->createUser($input->getArgument('email'), $input->getArgument('pasword'), $input->getArgument('username'), $input->getArgument('firstName'), $input->getArgument('lastName'), $input->getArgument('publication'), $input->getArgument('is_public'), $input->getArgument('roles'), $input->getOption('isAdmin'));
    }
CreateUserCommand