FOS\UserBundle\Command\ActivateUserCommand::configure PHP Method

configure() protected method

See also: Command
protected configure ( )
    protected function configure()
    {
        $this->setName('fos:user:activate')->setDescription('Activate a user')->setDefinition(array(new InputArgument('username', InputArgument::REQUIRED, 'The username')))->setHelp(<<<EOT
The <info>doctrine:user:activate</info> command activates a super (will be able to log in)

  <info>php app/console fos:user:activate matthieu</info>
EOT
);
    }

Usage Example

    /**
     * @see Command
     */
    protected function configure()
    {
        parent::configure();
        $definition = $this->getDefinition();
        $definition->addOption(new InputOption('user-system', null, InputOption::VALUE_REQUIRED, 'The user-system to use'));
        $this->setHelp(<<<EOT
The <info>fos:user:activate</info> command activates a user (so they will be able to log in):

  <info>php app/console fos:user:activate --user-system=acme_user matthieu</info>
EOT
);
    }