/**
  * Handle the event.
  *
  * @param  NewContentAvailable  $event
  * @return void
  */
 public function handle(NewContentAvailable $event)
 {
     $type = $event->type;
     if ($type === 'playlist') {
         $this->populateSeries->execute();
     }
     if ($type === 'game') {
         $this->populateGames->execute();
     }
 }
Exemplo n.º 2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $this->populate->execute();
 }
Exemplo n.º 3
0
 public function getPipeline()
 {
     $seriesPipeline = $this->populateSeries->getPipeline();
     $pipeline = (new Pipeline())->pipe(App::make(SearchSeriesForGame::class))->pipe(App::make(SaveSeriesData::class))->pipe($seriesPipeline);
     return $pipeline;
 }