Exemplo n.º 1
0
 /**
  * Runs the cli
  *
  * @return int
  */
 public function run()
 {
     foreach ($this->manager->updateAllFeeds() as $id) {
         $this->printLine("Updated feed: {$id}");
     }
     return 0;
 }
Exemplo n.º 2
0
 /**
  * GET /feed/update
  */
 public function updateAllFeeds()
 {
     $this->app->render(200, ['response' => $this->manager->updateAllFeeds()]);
 }