Пример #1
0
 /**
  * Execute the console command.
  * @return void
  */
 public function fire()
 {
     $message = CampaignWorker::instance()->process();
     $this->output->writeln($message);
 }
Пример #2
0
 public function registerSchedule($schedule)
 {
     $schedule->call(function () {
         CampaignWorker::instance()->process();
     })->everyFiveMinutes();
 }