Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

zend-servicemanager 2.7.8

Compare
Choose a tag to compare
@weierophinney weierophinney released this 19 Dec 19:16
· 610 commits to master since this release

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, 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.