This repository has been archived by the owner on Feb 6, 2020. It is now read-only.
Releases: zendframework/zend-servicemanager
Releases · zendframework/zend-servicemanager
zend-servicemanager 2.7.8
Added
- Nothing.
Changes
- #158 provides a performance optimization within the
InvokableFactory
, ensuring it checks for a class matching the$requestedName
prior to the$canonicalName
; this also is more in line with version 3, which only has access to the requested name.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #164 fixes how the
InvokableFactory
deals with creation options. Prior to this release, absence of options led to setting the creation options to an empty array, which, because it was non-null, led to breakage in plugins that treated an empty array differently than null. This patch ensures that the original behavior is restored. - #168 fixes how exception codes are provided to
ServiceNotCreatedException
. Previously, the code was provided as-is. However, some PHP internal exception classes, notablyPDOException
, can sometimes return other values (such as strings), which can lead to fatal errors when instantiating the new exception. The patch provided casts exception codes to integers to prevent these errors.
zend-servicemanager 2.7.7
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #127 fixes how the
AbstractPluingManager
handles$options
arrays passed when retrieving a plugin when that plugin resolves to theInvokableFactory
, ensuring subsequent calls with different options are created correctly.
zend-servicemanager 3.1.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #136 removes several imports to classes in subnamespaces within the
ServiceManager
classfile, removing potential name resolution conflicts that occurred in edge cases when testing.
zend-servicemanager 3.1.0
Added
- #103 Allowing
installation ofocramius/proxy-manager
^2.0
together with
zendframework/zend-servicemanager
. - #103 Disallowing
test failures when running tests against PHP7.0.*
. - #113 Improved performance
when dealing with registering aliases and factories viaServiceManager#setFactory()
and
ServiceManager#setAlias()
- #120 The
zendframework/zend-servicemanager
component now provides a
container-interop/container-interop-implementation
implementation
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-servicemanager 2.7.6
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #116 updates
ServiceLocatorInterface
to extend container-interop'sContainerInterface
, as the definitions are compatible. This change will mean that implementingServiceLocatorInterface
will provide aContainerInterface
implementation.
zend-servicemanager 3.0.3
Added
- #89 adds cyclic alias detection to the
ServiceManager
; it now raises aZend\ServiceManager\Exception\CyclicAliasException
when one is detected, detailing the cycle detected. - #95 adds GitHub Pages publication automation, and moves the documentation to https://zendframework.github.io/zend-servicemanager/
- #93 adds
Zend\ServiceManager\Test\CommonPluginManagerTrait
, which can be used to validate that a plugin manager instance is ready for version 3.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #90 fixes several examples in the configuration chapter of the documentation, ensuring that the signatures are correct.
- #92 ensures that alias resolution is skipped during configuration if no aliases are present, and forward-ports the test from #81 to validate v2/v3 compatibility for plugin managers.
zend-servicemanager 2.7.5
Added
- #81 adds a test covering forwards-compatibility features for plugin manager implementations.
- #96 adds
Zend\ServiceManager\Test\CommonPluginManagerTrait
, which allows you to test that your plugin manager is forwards compatible with v3.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #91 updates the
InvokableFactory
to add thesetCreationOptions()
method, allowing theInvokableFactory
to accept$options
when triggered.
zend-servicemanager 3.0.2
Added
- #64 performance optimizations
when dealing with alias resolution during service manager instantiation
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-servicemanager 3.0.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- #68 removes the dependency on zend-stdlib by inlining the
ArrayUtils::merge()
routine as a private method ofZend\ServiceManager\Config
.
Fixed
- Nothing.
zend-servicemanager 2.7.4
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #71 fixes an edge case with alias usage, whereby an alias of an alias was not being resolved to the final service name.