Skip to content

2.7.8

@weierophinney weierophinney tagged this 19 Dec 19:14
Based on https://github.com/zendframework/zend-servicemanager/releases/tag/release-2.7.8 (commit 2dcef652480c2fdda27cb88625007be7116efa7b in this repo)

Added
-----

- Nothing.

Changes
-------

- [zendframework/zend-servicemanager#158](https://github.com/zendframework/zend-servicemanager/pull/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
-----

- [zendframework/zend-servicemanager#164](https://github.com/zendframework/zend-servicemanager/pull/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.
- [zendframework/zend-servicemanager#168](https://github.com/zendframework/zend-servicemanager/pull/168) fixes
  how exception codes are provided to `ServiceNotCreatedException`. Previously,
  the code was provided as-is. However, some PHP internal exception classes,
  notably `PDOException`, 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.
Assets 2