This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Reader extension: Non-working example in documentation #44
Labels
Comments
This was referenced Nov 11, 2017
Instructions are still valid for zend-servicemanager v2, however for v3 it needs to be changed to $extensions = new ExtensionPluginManager(new ServiceManager());
$extensions->setFactory(JungleBooks\Entry::class, \Zend\ServiceManager\Factory\InvokableFactory::class);
Reader::setExtensionManager($extensions);
Reader::registerExtension('JungleBooks'); See https://docs.zendframework.com/zend-servicemanager/migration/#invokables |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: