/**
  * 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();
     }
 }
Ejemplo n.º 2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $this->populate->execute();
 }