Migration
Migration to version 3
Version 3 is essentially fully backwards compatible with previous versions, with
one key exception: Zend\Config\Factory
no longer requires usage of
zend-servicemanager for resolving plugins.
The reason this is considered a backwards compatibility break is due to signature changes:
-
Factory::setReaderPluginManager()
now accepts aPsr\Container\ContainerInterface
, and not aZend\Config\ReaderPluginManager
instance;ReaderPluginManager
, however, still fulfills that typehint. -
Factory::getReaderPluginManager()
now returns aPsr\Container\ContainerInterface
— specifically, aZend\Config\StandaloneReaderPluginManager
— and not aZend\Config\ReaderPluginManager
instance, by default;ReaderPluginManager
, however, still fulfills that typehint. -
Factory::setWriterPluginManager()
now accepts aPsr\Container\ContainerInterface
, and not aZend\Config\WriterPluginManager
instance;WriterPluginManager
, however, still fulfills that typehint. -
Factory::getWriterPluginManager()
now returns aPsr\Container\ContainerInterface
— specifically, aZend\Config\StandaloneWriterPluginManager
— and not aZend\Config\WriterPluginManager
instance, by default;WriterPluginManager
, however, still fulfills that typehint.
If you were extending the class, you will need to update your signatures accordingly.
This particular update means that you may use any PSR-11 container as a reader or writer plugin manager, and no longer require installation of zend-servicemanager to use the plugin manager facilities.
Found a mistake or want to contribute to the documentation? Edit this page on GitHub!