We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating zend-feed to v2.10.3, it seems that the setInvokableClass to add personnal writer has changed. Giving the following error :
setInvokableClass
Method by name of setInvokableClass does not exist in Zend\Feed\Writer\ExtensionManager
I tried to find more information into your doc, but the bloc is empty with a TODOmention.
TODO
extensions = Writer::getExtensionManager(); $extensions->setInvokableClass('MyEntryName','PathToMyEntryClass'); Writer::registerExtension('MyExtensionName');
My extension well registered. And the section doc completed.
Originally posted by @gbouyge at zendframework/zend-feed#86
The text was updated successfully, but these errors were encountered:
@gbouyge
After updating zend-feed to v2.10.3, it seems that the setInvokableClass to add personnal writer has changed.
This method has been gone since version 2.6.0.
You can use the following:
/** @var \Zend\Feed\Reader\StandaloneExtensionManager $extensionManager */ $extensionManager = \Zend\Feed\Writer\Writer::getExtensionManager(); $extensionManager->add('My\Entry', \My\Entry::class); \Zend\Feed\Writer\Writer::registerExtension('My'); var_dump($extensionManager->has('My\Entry')); // true var_dump(\Zend\Feed\Writer\Writer::getExtensions()['entry']); // array {0 => 'My\Entry'}
or use the class names:
$extensionManager->add(\My\Entry::class, \My\Entry::class); var_dump($extensionManager->has(\My\Entry::class)); // true
Originally posted by @froschdesign at zendframework/zend-feed#86 (comment)
Sorry, something went wrong.
froschdesign
No branches or pull requests
After updating zend-feed to v2.10.3, it seems that the
setInvokableClass
to add personnal writer has changed. Giving the following error :I tried to find more information into your doc, but the bloc is empty with a
TODO
mention.Code to reproduce the issue
Expected results
My extension well registered.
And the section doc completed.
Actual results
Originally posted by @gbouyge at zendframework/zend-feed#86
The text was updated successfully, but these errors were encountered: