Open gbouyge opened 6 years ago
@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
This repository has been closed and moved to laminas/laminas-feed; a new issue has been opened at https://github.com/laminas/laminas-feed/issues/6.
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