/** * @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; }
/** * @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; }