Open
Description
I know it may be a bit too complicated due as part of migration to zf3. It makes sense to change static zend-feed interface to dynamic.
class Reader
{
public function __construct(HttpClient $http = null, CacheAdapter $cache = null)
public function import()
{
$cache = $this->getCache();
$client = $this->getHttpClient();
$cacheId = 'Zend_Feed_Reader_' . md5($uri);
...
}
}
It will break back comparability with version 2.*. But It's necessary changes if we want to have clear, easy management code that can be used in any application without global static variables.
Originally posted by @necromant2005 at zendframework/zend-feed#19
Activity