Example #1
0
 protected function execute_outgoing(InputInterface $input, OutputInterface $output)
 {
     $providers = $this->get_providers($input, $output);
     $limit = $input->getOption('limit');
     $totals = [];
     foreach ($providers as $id => $provider) {
         $totals[] = ['Provider' => $provider->name, 'Total' => \DataProvider::process_pending_messages($limit, $id)];
     }
     return $totals;
 }
Example #2
0
 protected function executeOutgoing(InputInterface $input, OutputInterface $output)
 {
     $providers = $this->get_providers($input, $output);
     $limit = $input->getOption('limit');
     // Hack: always include email no matter what!
     if (!isset($providers['email'])) {
         $providers['email'] = $this->repo->get('email');
     }
     $totals = [];
     foreach ($providers as $id => $provider) {
         $totals[] = ['Provider' => $provider->name, 'Total' => \DataProvider::process_pending_messages($limit, $id)];
     }
     return $totals;
 }