Exemple #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     if ($clientId = $this->input->getOption('partner')) {
         $this->downloadService->downloadClientFeed($clientId);
     } elseif ($feedId = $this->input->getOption('feed')) {
         logger()->debug($feedId);
         $this->downloadService->downloadOnlyFeed($feedId);
     } else {
         logger()->error('Nothing to download.');
     }
     $message = sprintf("Downloading feeds for partner");
     $this->notificationService->success($message);
 }