コード例 #1
0
 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);
 }
コード例 #2
0
 /**
  * {@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();
 }
コード例 #3
0
 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);
 }
コード例 #4
0
    /**
     * 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
);
    }
コード例 #5
0
 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');
 }
コード例 #6
0
 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.');
 }
コード例 #7
0
 /**
  * {@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();
 }
コード例 #8
0
 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
ファイル: OrmCommand.php プロジェクト: skilla/ormextend
    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
);
    }
コード例 #11
0
 /**
  * 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);
 }
コード例 #12
0
 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 . '.');
     }
 }
コード例 #13
0
 /**
  * @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");
 }
コード例 #14
0
 /**
  * {@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();
 }
コード例 #15
0
    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
);
    }
コード例 #16
0
    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');
    }
コード例 #17
0
    /**
     * 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
);
    }
コード例 #18
0
 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();
 }
コード例 #20
0
 public function configure()
 {
     parent::configure();
     $this->setName('partkeepr:setup:import-units');
     $this->setDescription("Imports the default PartKeepr units");
 }
コード例 #21
0
 protected function configure()
 {
     parent::configure();
     $this->setName('claroline:chat:validate');
 }
 protected function configure()
 {
     parent::configure();
     $this->addArgument('protocol', InputArgument::OPTIONAL, 'The protocol to debug');
 }
コード例 #23
0
 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')));
 }
コード例 #24
0
 public function configure()
 {
     parent::configure();
     $this->setName('partkeepr:cron:clear');
     $this->setDescription('Clears all cron logger entries');
 }
コード例 #25
0
 /**
  * {@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');
 }
コード例 #26
0
 /**
  * Configures the current command.
  */
 protected function configure()
 {
     parent::configure();
 }
コード例 #27
0
 /**
  * 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');
 }
コード例 #29
0
 /**
  * {@inheritdoc}
  */
 public function configure()
 {
     parent::configure();
     $this->setName('victoire:widget-css:generate')->setDescription('Generate widgets css for each view');
 }
コード例 #30
0
 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?');
 }