Наследование: implements fastfeed\FastFeedInterface
Пример #1
0
 /**
  * @return FastFeed
  */
 public static function create()
 {
     $fastFeed = new FastFeed(HttpAdapterFactory::create('guzzle'), new Logger(false));
     $fastFeed->pushParser(new RSSParser());
     $fastFeed->pushParser(new AtomParser());
     return $fastFeed;
 }
Пример #2
0
 /**
  * @param string $channel
  *
  * @return array|CacheInterface
  */
 public function fetch($channel = 'default')
 {
     $items = $this->getFromCache($channel);
     if (!$items) {
         $items = parent::fetch($channel);
         $this->setToCache($channel, $items);
     }
     return $items;
 }