container
container copied to clipboard
SingletonLifetimeManager is deprecated
Deprecating SingletonLifetimeManager
SingletonLifetimeManager lifetime manager was introduced in v5 to support global singletons. The registration with this manager would be propagated into root container and be available for all children
Reason for deprecation
Due to optimization of registration strategy in v6.x it is no longer possible to internally switch container during registration. As result, when registering in child container, root container context is not available and SingletonLifetimeManager can not be registered there.
Impact
Registrations made with SingletonLifetimeManager must be changed to ContainerControlledLifetimeManager and registered with the root container explicitly.