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

Releases: zendframework/zend-servicemanager

zend-servicemanager 3.4.0

22 Dec 06:22
release-3.4.0
a1ed614
Compare
Choose a tag to compare

Added

  • #275 Enables plugin managers to accept as a creation context PSR Containers not implementing Interop interface

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #268 Fixes ReflectionBasedAbstractFactory trying to instantiate classes with private constructors

zend-servicemanager 2.7.11

22 Jun 14:52
release-2.7.11
Compare
Choose a tag to compare

2.7.11 - 2018-06-22

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #269 fixes a
    regression whereby using static Callable strings caused an undefined variable
    notice.

zend-servicemanager 3.3.2

29 Jan 16:50
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #243 provides a fix to the ReflectionBasedAbstractFactory to resolve type-hinted arguments with default values to their default values if no matching type is found in the container.

  • #233 fixes a number of parameter annotations to reflect the actual types used.

zend-servicemanager 2.7.10

05 Dec 16:29
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #210 fixes a regression whereby factories accepting creation options were receiving an empty array versus a null value when no options were present for a particular invocation; they now correctly receive a null value.

zend-servicemanager 3.3.1

27 Nov 18:20
Compare
Choose a tag to compare

Added

  • #201 and #202 add support for PHP versions 7.1 and 7.2.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #206 fixes an issue where by callables in Class::method notation were not being honored under PHP 5.6.

zend-servicemanager 2.7.9

27 Nov 22:36
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #205 fixes how the AbstractPluginManager handles repeated retrievals of the same service when instance options are provided and the service is marked as "shared". Previously, it incorrectly would return the first instance retrieved; with this release, no instance created with instance options is ever shared.

zend-servicemanager 3.3.0

01 Mar 22:10
Compare
Choose a tag to compare

Added

  • #180 adds explicit support for PSR-11 (ContainerInterface) by requiring container-interop at a minimum version of 1.2.0, and adding a requirement on psr/container 1.0. Zend\ServiceManager\ServiceLocatorInterface now explicitly extends the ContainerInterface from both projects.

    Factory interfaces still typehint against the container-interop variant, as changing the typehint would break backwards compatibility. Users can duck-type most of these interfaces, however, by creating callables or invokables that typehint against psr/container instead.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-servicemanager 3.2.1

15 Feb 15:32
Compare
Choose a tag to compare

Added

  • #176 adds the options -i or --ignore-unresolved to the shipped generate-deps-for-config-factory command. This flag allows it to build configuration for classes resolved by the ConfigAbstractFactory that typehint on interfaces, which was previously unsupported.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #174 updates the ConfigAbstractFactory to allow the config service to be either an array or an ArrayObject; previously, only array was supported.

zend-servicemanager 3.2.0

19 Dec 20:09
Compare
Choose a tag to compare

Added

  • #146 adds Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory, which enables a configuration-based approach to providing class dependencies when all dependencies are services known to the ServiceManager. Please see the documentation for details.
  • #154 adds Zend\ServiceManager\Tool\ConfigDumper, which will introspect a given class to determine dependencies, and then create configuration for Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory, merging it with the provided configuration file. It also adds a vendor binary, generate-deps-for-config-factory, for generating these from the command line.
  • #154 adds Zend\ServiceManager\Tool\FactoryCreator, which will introspect a given class and generate a factory for it. It also adds a vendor binary, generate-factory-for-class, for generating these from the command line.
  • #153 adds Zend\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory. This class may be used as either a mapped factory or an abstract factory, and will use reflection in order to determine which dependencies to use from the container when instantiating the requested service, with the following rules:
    • Scalar values are not allowed, unless they have default values associated.
    • Values named $config type-hinted against array will be injected with the config service, if present.
    • All other array values will be provided an empty array.
    • Class/interface typehints will be pulled from the container.
  • #150 adds a "cookbook" section to the documentation, with an initial document detailing the pros and cons of abstract factory usage.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #106 adds detection of multiple attempts to register the same instance or named abstract factory, using a previous instance when detected. You may still use multiple discrete instances, however.

zend-servicemanager 3.1.2

19 Dec 19:53
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #167 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.