Migration
Migration: From laminas-mvc v2 DI/ServiceManager integration
laminas-servicemanager-di ports all DI integration present in:
to a single, optional component. As such, a number of classes were renamed that may impact end-users.
laminas-servicemanager functionality
The following classes were originally in laminas-servicemanager, but are now shipped as part of this package:
Laminas\ServiceManager\Di\DiAbstractServiceFactoryLaminas\ServiceManager\Di\DiInstanceManagerProxyLaminas\ServiceManager\Di\DiServiceFactoryLaminas\ServiceManager\Di\DiServiceInitializer
Some functionality was altered slightly to allow usage under both laminas-servicemanager v2 and v3, including how instance names and instance-specific parameters are handled.
DiServiceFactory
The constructor was changed to remove the $name and $parameters arguments.
These are now passed at invocation of the factory instead, making it perform
more correctly with relation to other FactoryInterface implementations.
laminas-mvc functionality
The following classes were renamed:
Laminas\Mvc\Service\DiAbstractServiceFactoryFactorywas renamed toLaminas\ServiceManager\Di\DiAbstractServiceFactoryFactory.Laminas\Mvc\Service\DiServiceInitializerFactorywas renamed toLaminas\ServiceManager\Di\DiServiceInitializerFactory.Laminas\Mvc\Service\DiFactorywas renamed toLaminas\ServiceManager\Di\DiFactory.Laminas\Mvc\Service\DiStrictAbstractServiceFactorywas renamed toLaminas\ServiceManager\Di\DiStrictAbstractServiceFactoryLaminas\Mvc\Service\DiStrictAbstractServiceFactoryFactorywas renamed toLaminas\ServiceManager\Di\DiStrictAbstractServiceFactoryFactory
All of the above are registered under service names identical to those used in v2 versions of laminas-mvc, meaning no change in usage for the majority of use cases.
Found a mistake or want to contribute to the documentation? Edit this page on GitHub!