@Ocramius Ocramius released this Jun 22, 2018 · 589 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Jan 29, 2018 · 7 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Dec 5, 2017 · 589 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Nov 27, 2017 · 34 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Nov 27, 2017 · 589 commits to master since this release

Assets 2

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.
Jul 13, 2017
zend-servicemanager 2.4.13
Jun 19, 2017
zend-servicemanager 2.4.12

@weierophinney weierophinney released this Mar 1, 2017 · 61 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Feb 15, 2017 · 78 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Dec 19, 2016 · 97 commits to master since this release

Assets 2

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.