/**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $this->setName('mautic:broadcasts:send')->setDescription('Process contacts pending to receive a channel broadcast.')->setHelp(<<<'EOT'
                The <info>%command.name%</info> command is send a channel broadcast to pending contacts.

<info>php %command.full_name% --channel=email --id=3</info>
EOT
)->setDefinition([new InputOption('channel', 'c', InputOption::VALUE_OPTIONAL, 'A specific channel to process broadcasts for pending contacts.'), new InputOption('id', 'i', InputOption::VALUE_OPTIONAL, 'The ID for a specifc channel to process broadcasts for pending contacts.')]);
        parent::configure();
    }
 protected function configure()
 {
     $this->setName('mautic:leadlists:update')->setAliases(array('mautic:lists:update', 'mautic:update:leadlists', 'mautic:update:lists', 'mautic:rebuild:leadlists', 'mautic:leadlists:rebuild', 'mautic:lists:rebuild', 'mautic:rebuild:lists'))->setDescription('Update leads in smart lists based on new lead data.')->addOption('--batch-limit', '-b', InputOption::VALUE_OPTIONAL, 'Set batch size of leads to process per round. Defaults to 300.', 300)->addOption('--max-leads', '-m', InputOption::VALUE_OPTIONAL, 'Set max number of leads to process per list for this script execution. Defaults to all.', false)->addOption('--list-id', '-i', InputOption::VALUE_OPTIONAL, 'Specific ID to rebuild. Defaults to all.', false);
     parent::configure();
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('mautic:campaigns:trigger')->setAliases(array('mautic:campaign:trigger', 'mautic:trigger:campaigns', 'mautic:trigger:campaign'))->setDescription('Trigger timed events for published campaigns.')->addOption('--campaign-id', '-i', InputOption::VALUE_OPTIONAL, 'Trigger events for a specific campaign.  Otherwise, all campaigns will be triggered.', null)->addOption('--scheduled-only', null, InputOption::VALUE_NONE, 'Trigger only scheduled events')->addOption('--negative-only', null, InputOption::VALUE_NONE, 'Trigger only negative events, i.e. with a "no" decision path.')->addOption('--batch-limit', '-l', InputOption::VALUE_OPTIONAL, 'Set batch size of leads to process per round. Defaults to 100.', 100)->addOption('--max-events', '-m', InputOption::VALUE_OPTIONAL, 'Set max number of events to process per campaign for this script execution. Defaults to all.', 0)->addOption('--force', '-f', InputOption::VALUE_NONE, 'Force execution even if another process is assumed running.');
     parent::configure();
 }
 protected function configure()
 {
     $this->setName('mautic:campaigns:update')->setAliases(array('mautic:update:campaigns', 'mautic:rebuild:campaigns', 'mautic:campaigns:rebuild'))->setDescription('Rebuild campaigns based on contact segments.')->addOption('--batch-limit', '-l', InputOption::VALUE_OPTIONAL, 'Set batch size of contacts to process per round. Defaults to 300.', 300)->addOption('--max-contacts', '-m', InputOption::VALUE_OPTIONAL, 'Set max number of contacts to process per campaign for this script execution. Defaults to all.', false)->addOption('--campaign-id', '-i', InputOption::VALUE_OPTIONAL, 'Specific ID to rebuild. Defaults to all.', false)->addOption('--force', '-f', InputOption::VALUE_NONE, 'Force execution even if another process is assumed running.');
     parent::configure();
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('mautic:messages:send')->setAliases(['mautic:campaigns:messagequeue', 'mautic:campaigns:messages'])->setDescription('Process sending of messages queue.')->addOption('--channel', '-c', InputOption::VALUE_OPTIONAL, 'Channel to use for sending messages i.e. email, sms.', null)->addOption('--channel-id', '-i', InputOption::VALUE_REQUIRED, 'The ID of the message i.e. email ID, sms ID.')->addOption('--message-id', '-m', InputOption::VALUE_REQUIRED, 'ID of a specific queued message');
     parent::configure();
 }
Example #6
0
 protected function configure()
 {
     $this->setName('mautic:segments:update')->setAliases(['mautic:segments:rebuild'])->setDescription('Update contacts in smart segments based on new contact data.')->addOption('--batch-limit', '-b', InputOption::VALUE_OPTIONAL, 'Set batch size of contacts to process per round. Defaults to 300.', 300)->addOption('--max-contacts', '-m', InputOption::VALUE_OPTIONAL, 'Set max number of contacts to process per segment for this script execution. Defaults to all.', false)->addOption('--list-id', '-i', InputOption::VALUE_OPTIONAL, 'Specific ID to rebuild. Defaults to all.', false);
     parent::configure();
 }