Esempio n. 1
0
 public function fetchRssFeeds()
 {
     $rssList = $this->rssService->getRssList();
     foreach ($rssList as $rss) {
         $this->rssNewsFeedsService->fetch($rss);
     }
     return true;
 }
Esempio n. 2
0
 /**
  * @param $all
  *
  * @return mixed
  */
 public function save($all)
 {
     $rss = $this->rss->save($all);
     $this->rssNewsFeedsService->insertFeeds($rss->id, $this->rssNewsFeedsService->getRssItems($all['url'], 10));
     return $rss;
 }