protected function configure()
 {
     parent::configure();
     $this->setName('debug:rpc_router');
     $this->setDescription('Display essential info about RPC routing');
     $this->addOption('endpoint', 'p', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Filter endpoint', null);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('pln:health:check');
     $this->setDescription('Find journals that have gone silent.');
     $this->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'Do not update journal status');
     parent::configure();
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('app:communication:recycler:emails');
     $this->setDescription('Retries the sending of emails with temporary error');
     $this->addOption('limit', '-l', InputOption::VALUE_OPTIONAL, 'Number of emails to resend', 10);
 }
    /**
     * Configures the current command.
     */
    protected function configure()
    {
        parent::configure();
        $this->setName('kuma:user:create')->setDescription('Create a user.')->setDefinition(array(new InputArgument('username', InputArgument::REQUIRED, 'The username'), new InputArgument('email', InputArgument::REQUIRED, 'The email'), new InputArgument('password', InputArgument::REQUIRED, 'The password'), new InputArgument('locale', InputArgument::OPTIONAL, 'The locale (language)'), new InputOption('group', null, InputOption::VALUE_REQUIRED, 'The group(s) the user should belong to'), new InputOption('super-admin', null, InputOption::VALUE_NONE, 'Set the user as super admin'), new InputOption('inactive', null, InputOption::VALUE_NONE, 'Set the user as inactive')))->setHelp(<<<EOT
The <info>kuma:user:create</info> command creates a user:

  <info>php app/console kuma:user:create matthieu --group=Users</info>

This interactive shell will ask you for an email and then a password.

You can alternatively specify the email, password and locale and group as extra arguments:

  <info>php app/console kuma:user:create matthieu matthieu@example.com mypassword en --group=Users</info>

You can create a super admin via the super-admin flag:

  <info>php app/console kuma:user:create admin --super-admin --group=Administrators</info>

You can create an inactive user (will not be able to log in):

  <info>php app/console kuma:user:create thibault --inactive --group=Users</info>

<comment>Note:</comment> You have to specify at least one group.

EOT
);
    }
 public function configure()
 {
     parent::configure();
     $this->setName('partkeepr:user:unprotect');
     $this->setDescription('Unprotects a given user against changes');
     $this->addArgument('username', InputArgument::REQUIRED, 'The username to unprotect against changes');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('itscaro:generate:all');
     $this->setDefinition(array(new InputArgument('bundle', InputArgument::REQUIRED, 'Bundle name'), new InputOption('route-prefix', '', InputOption::VALUE_OPTIONAL, 'The route prefix, this value is suffixed by lower-cased entity name'), new InputOption('with-write', '', InputOption::VALUE_NONE, 'Whether or not to generate create, new and delete actions'), new InputOption('format', '', InputOption::VALUE_REQUIRED, 'Use the format for configuration files (php, xml, yml, or annotation)', 'annotation'), new InputOption('overwrite', '', InputOption::VALUE_NONE, 'Do not stop the generation if crud controller already exist, thus overwriting all generated files')));
     $this->setDescription('A CRUD generator with paginating and filters.');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('pln:health:reminder');
     $this->setDescription('Remind admins about silent journals.');
     $this->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'Do not update journal status');
     parent::configure();
 }
 public function configure()
 {
     parent::configure();
     $this->setName('partkeepr:user:protect');
     $this->setDescription("Protects a given user against changes");
     $this->addArgument("username", InputArgument::REQUIRED, "The username to protect against changes");
 }
示例#9
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('pln:run-all');
     $this->setDescription('Run all processing commands.');
     $this->addOption('force', 'f', InputOption::VALUE_NONE, 'Force the processing state to be updated');
     $this->addOption('limit', 'l', InputOption::VALUE_OPTIONAL, 'Only process $limit deposits.');
     parent::configure();
 }
示例#10
0
    protected function configure()
    {
        parent::configure();
        $this->setName('doctrine:schema:extend')->setDescription('Extend dql')->setDefinition(array())->setHelp(<<<EOT
The command <info>doctrine:schema:extend</info> extends dql functionality.
EOT
);
    }
 /**
  * Provides default options for all commands. This function should be called explicitly (i.e. parent::configure())
  * if the configure function is overridden.
  */
 protected function configure()
 {
     $this->runtimeConfig = new RuntimeConfig($this);
     $this->advanceExecutionPhase(RuntimeConfig::PHASE_CONFIGURE);
     parent::configure();
     $this->addOption('log-level', 'l', InputOption::VALUE_REQUIRED, 'Override the Monolog logging level for this execution of the command. Valid values: ' . implode(',', array_keys(Logger::getLevels())))->addOption('log-filename', null, InputOption::VALUE_REQUIRED, 'Specify a different file (relative to the ' . 'kernel log directory) to send file logs to')->addOption('locking', null, InputOption::VALUE_REQUIRED, 'Switches locking on/off');
     $this->advanceExecutionPhase(RuntimeConfig::PHASE_POST_CONFIGURE);
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('claroline:parameters:set')->setDescription('Set a list of parameters in platform_options.yml.');
     foreach (PlatformConfigurationHandler::$defaultParameters as $param => $value) {
         $this->addOption($param, null, InputOption::VALUE_REQUIRED, 'Set a value for the parameter ' . $param . '.');
     }
 }
 /**
  * @inheritdoc
  */
 public function configure()
 {
     parent::configure();
     $this->setName('generate:extjs:entity');
     $this->addArgument('name', InputArgument::REQUIRED, "A bundle name, a namespace, or a class name");
     $this->addOption('output', '', InputOption::VALUE_OPTIONAL, "File/Directory for the output of the ExtJs model file");
     $this->addOption('overwrite', 'y', InputOption::VALUE_NONE, "Overwrite existing file");
     $this->setDescription("Generate Sencha ExtJs model base on an existing PHP entity");
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('pln:ping-whitelist');
     $this->setDescription('Find journals running a sufficiently new version of OJS and whitelist them.');
     $this->addArgument('minVersion', InputArgument::OPTIONAL, 'Minimum version required to whitelist.');
     $this->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'Do not update the whitelist - report only.');
     $this->addOption('all', 'a', InputOption::VALUE_NONE, 'Ping all journals, including whitelisted/blacklisted.');
     parent::configure();
 }
    protected function configure()
    {
        parent::configure();
        $this->setName('doctrine:phpcr:repository:init')->addOption('session', null, InputOption::VALUE_OPTIONAL, 'The session to use for this command')->setDescription('Initialize the PHPCR repository.')->setHelp(<<<EOT
Run all initializers tagged with doctrine_phpcr.initializer to create documents
or base paths so the application can work. If phpcr-odm is present, also runs
the doctrine:phpcr:register-system-node-types command.
EOT
);
    }
    protected function configure()
    {
        parent::configure();
        $this->setName('stork:manager')->setDescription('Manager Stork line command queues')->addArgument('action', InputArgument::REQUIRED, 'Action with the queue [list_commands | list_queues | clear | add | remove | stop | start | terminate]
- list_commands queue=<queue_name> : List all the commands pending from a queue.
- list_queues : List all the queues process active.
- clear queue=<queue_name> : Clear of commands from a queue.
- add queue=<queue_name> command=<string_command> arguments=<command_arguments> : Add a line command to a queue directly.
- remove queue=<queue_name> command_id=<command_id> : Remove a command from a queue.
- stop queue=<queue_name | all> : Stop temporary the execution of the commands pending from a queue or all the queues.
- start queue=<queue_name | all> : Start or resume the execution of the commands from a queue or all the queues.
- terminate queue=<queue_name | all> : Terminate the execution of the commands pending from a queue or all the queues.')->addArgument('args', InputArgument::IS_ARRAY, 'Additional arguments for the actions: queue_name, command, command_id');
    }
    /**
     * Configures the current command
     */
    protected function configure()
    {
        parent::configure();
        $this->setName('kuma:group:create')->setDescription('Create a user group.')->setDefinition(array(new InputArgument('group', InputArgument::REQUIRED, 'The group'), new InputOption('role', null, InputOption::VALUE_OPTIONAL, 'Role(s) (comma separated list if you want to specifiy multiple roles)')))->setHelp(<<<EOT
The <info>kuma:group:create</info> command creates a group:

  <info>php app/console kuma:group:create Administrators</info>

You can specify a list of roles to attach to this group by specifying the
optional --roles parameter, providing a comma separated list of roles :

  <info>php app/console kuma:group:create --role=admin,guest Administrators</info>

<comment>Note:</comment> The ROLE_ prefix will be added if you don't provide it AND you must make
sure the roles already exist!

EOT
);
    }
 protected function configure()
 {
     parent::configure();
     $this->setName('evpos:import_acces_appli')->setDescription('Import des accès aux applications depuis le base GAP');
 }
示例#19
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('mautic:integration:pushleadactivity')->setAliases(array('mautic:integration:pushactivity', 'mautic:pushactivity:integration'))->setDescription('Push lead activity to integration.')->addOption('--integration', '-i', InputOption::VALUE_REQUIRED, 'Integration name. Integration must be enabled and authorised.', null)->addOption('--start-date', '-d', InputOption::VALUE_REQUIRED, 'Set start date for updated values.')->addOption('--end-date', '-t', InputOption::VALUE_REQUIRED, 'Set end date for updated values.')->addOption('--time-interval', '-a', InputOption::VALUE_OPTIONAL, 'Send time interval to check updates on Salesforce, it should be a correct php formatted time interval in the past eg:(-10 minutes)')->addOption('--force', '-f', InputOption::VALUE_NONE, 'Force execution even if another process is assumed running.');
     parent::configure();
 }
 public function configure()
 {
     parent::configure();
     $this->setName('partkeepr:setup:import-units');
     $this->setDescription("Imports the default PartKeepr units");
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('claroline:chat:validate');
 }
 protected function configure()
 {
     parent::configure();
     $this->addArgument('protocol', InputArgument::OPTIONAL, 'The protocol to debug');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('claroline:test_update')->setAliases(array('claroline:debug:update'))->setDescription('Tests the local update of a bundle.');
     $this->setDefinition(array(new InputArgument('bundle', InputArgument::REQUIRED, 'bundle'), new InputArgument('from_version', InputArgument::REQUIRED, 'from version'), new InputArgument('to_version', InputArgument::REQUIRED, 'to version')));
 }
 public function configure()
 {
     parent::configure();
     $this->setName('partkeepr:cron:clear');
     $this->setDescription('Clears all cron logger entries');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setDescription('Generate (dump) a feed in an XML file')->setName('eko:feed:dump')->addOption('name', null, InputOption::VALUE_REQUIRED, 'Feed name defined in eko_feed configuration')->addOption('entity', null, InputOption::VALUE_REQUIRED, 'Entity to use to generate the feed')->addOption('filename', null, InputOption::VALUE_REQUIRED, 'Defines feed filename')->addOption('orderBy', null, InputOption::VALUE_OPTIONAL, 'Order field to sort by using findBy() method')->addOption('direction', null, InputOption::VALUE_OPTIONAL, 'Direction to give to sort field with findBy() method')->addOption('format', null, InputOption::VALUE_OPTIONAL, 'Formatter to use to generate, "rss" is default')->addOption('limit', null, InputOption::VALUE_OPTIONAL, 'Defines a limit of entity items to retrieve')->addArgument('host', InputArgument::REQUIRED, 'Set the host');
 }
 /**
  * Configures the current command.
  */
 protected function configure()
 {
     parent::configure();
 }
 /**
  * Configures the command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('kuma:fix:user-password')->setDescription('Set the password changed value to true for all users.')->setHelp('The <info>kuma:fix:user-password</info> command can be used to set password changed for all users to true.');
 }
示例#28
0
 protected function configure()
 {
     parent::configure();
     $this->setName('evpos:import_baza')->setDescription('Import des données BAZA');
 }
 /**
  * {@inheritdoc}
  */
 public function configure()
 {
     parent::configure();
     $this->setName('victoire:widget-css:generate')->setDescription('Generate widgets css for each view');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('pf:transport')->setDescription('Postfix Transport')->addOption('domain', null, InputOption::VALUE_REQUIRED, 'What is the domainname?')->addOption('transport', null, InputOption::VALUE_REQUIRED, 'What is the transport?');
 }