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:create</info> command creates a user: <info>php app/console fos:user:create --user-system=acme_user matthieu</info> This interactive shell will ask you for an email and then a password. You can alternatively specify the email and password as the second and third arguments: <info>php app/console fos:user:create --user-system=acme_user matthieu matthieu@example.com mypassword</info> You can create a super admin via the super-admin flag: <info>php app/console fos:user:create admin --super-admin</info> You can create an inactive user (will not be able to log in): <info>php app/console fos:user:create thibault --inactive</info> EOT ); }
/** * @see Command */ protected function configure() { parent::configure(); $this->setName('AE:user:create')->getDefinition()->addArguments(array(new InputArgument('nom', InputArgument::REQUIRED, 'The lastname'), new InputArgument('prenom', InputArgument::REQUIRED, 'The firstname'))); $this->setHelp(<<<EOT // L'aide qui va bien EOT ); }
/** * @see Command */ protected function configure() { parent::configure(); $this->setName('sl:user:create')->getDefinition()->addArguments(array(new InputArgument('nom', InputArgument::REQUIRED, 'The firstname'), new InputArgument('prenoms', InputArgument::REQUIRED, 'The lastname'), new InputArgument('dateNaissance', InputArgument::REQUIRED, 'The birthday'), new InputArgument('sexe', InputArgument::REQUIRED, 'The gender'), new InputArgument('adresse', InputArgument::REQUIRED, 'The address'), new InputArgument('telephone', InputArgument::REQUIRED, 'The Phone number'), new InputArgument('image', InputArgument::REQUIRED, 'The Picture'))); $this->setHelp(<<<EOT // L'aide qui va bien EOT ); }
/** * @see Command */ protected function configure() { parent::configure(); //add new command with 1 more InputArgument (database name) $this->setName('publish:user:create')->getDefinition()->addArguments(array(new InputArgument('dbName', InputArgument::REQUIRED, 'database name'))); }