Example #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     try {
         $list = new ArticleList();
         $list->syncFromServerToDB();
         $feed = new ArticleFeed();
         $feed->generateFeed();
     } catch (Exception $ex) {
         Log::error('unable to sync articles: ' . $ex->getMessage());
         throw $ex;
     }
 }
Example #2
0
 public function getFeed()
 {
     $feed = new ArticleFeed();
     $feed->load();
     return $feed->data;
 }