You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
When reading the docs I stumbled upon a problem. In the section Writing Zend\Feed\Reader Extensions an example is given on how to use the ExtensionPluginManager in order to register an extension to the reader.
The example given is as follows:
useMy\FeedReader\Extension\JungleBooks;
useZend\Feed\Reader\ExtensionManager;
useZend\Feed\Reader\ExtensionPluginManager;
useZend\Feed\Reader\Reader;
$extensions = newExtensionPluginManager();
$extensions->setInvokableClass('JungleBooks\Entry', JungleBooks\Entry::class);
Reader::setExtensionManager(newExtensionManager($extensions));
Reader::registerExtension('JungleBooks');
$feed = Reader::import('http://example.com/junglebooks/rss');
// ISBN for whatever book the first entry in the feed was concerned with$firstIsbn = $feed->current()->getIsbn();
This example won't work because the following exception will be thrown:
Deprecated: Zend\ServiceManager\AbstractPluginManager::__construct now expects a Interop\Container\ContainerInterface instance representing the parent container; please update your code in /vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php on line 85
Call Stack:
0.0006 363936 1. {main}() /index.php:0
0.0012 386160 2. Zend\Feed\Reader\ExtensionPluginManager->__construct() /index.php:9
0.0013 389096 3. trigger_error() /vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php:85
Please see to this issue by updating the docs.
The text was updated successfully, but these errors were encountered:
When reading the docs I stumbled upon a problem. In the section Writing Zend\Feed\Reader Extensions an example is given on how to use the ExtensionPluginManager in order to register an extension to the reader.
The example given is as follows:
This example won't work because the following exception will be thrown:
Please see to this issue by updating the docs.
The text was updated successfully, but these errors were encountered: