Пример #1
0
 /**
  * Runs the cli
  *
  * @return int
  */
 public function run()
 {
     foreach ($this->manager->updateAllFeeds() as $id) {
         $this->printLine("Updated feed: {$id}");
     }
     return 0;
 }
Пример #2
0
 /**
  * GET /feed/calculate-update-interval
  */
 public function calculateUpdateInterval()
 {
     $this->app->render(200, ['response' => $this->manager->calculateUpdateInterval()]);
 }