|
2 | 2 |
|
3 | 3 | All notable changes to this project will be documented in this file, in reverse chronological order by release. |
4 | 4 |
|
| 5 | +## 3.2.0 - TBD |
| 6 | + |
| 7 | +### Added |
| 8 | + |
| 9 | +- [#146](https://github.com/zendframework/zend-servicemanager/pull/146) adds |
| 10 | + `Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory`, which enables a |
| 11 | + configuration-based approach to providing class dependencies when all |
| 12 | + dependencies are services known to the `ServiceManager`. Please see |
| 13 | + [the documentation](doc/book/config-abstract-factory.md) for details. |
| 14 | +- [#154](https://github.com/zendframework/zend-servicemanager/pull/154) adds |
| 15 | + `Zend\ServiceManager\Tool\ConfigDumper`, which will introspect a given class |
| 16 | + to determine dependencies, and then create configuration for |
| 17 | + `Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory`, merging it with |
| 18 | + the provided configuration file. It also adds a vendor binary, |
| 19 | + `generate-deps-for-config-factory`, for generating these from the command |
| 20 | + line. |
| 21 | +- [#154](https://github.com/zendframework/zend-servicemanager/pull/154) adds |
| 22 | + `Zend\ServiceManager\Tool\FactoryCreator`, which will introspect a given class |
| 23 | + and generate a factory for it. It also adds a vendor binary, |
| 24 | + `generate-factory-for-class`, for generating these from the command line. |
| 25 | +- [#153](https://github.com/zendframework/zend-servicemanager/pull/153) adds |
| 26 | + `Zend\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory`. This |
| 27 | + class may be used as either a mapped factory or an abstract factory, and will |
| 28 | + use reflection in order to determine which dependencies to use from the |
| 29 | + container when instantiating the requested service, with the following rules: |
| 30 | + - Scalar values are not allowed, unless they have default values associated. |
| 31 | + - Values named `$config` type-hinted against `array` will be injected with the |
| 32 | + `config` service, if present. |
| 33 | + - All other array values will be provided an empty array. |
| 34 | + - Class/interface typehints will be pulled from the container. |
| 35 | +- [#150](https://github.com/zendframework/zend-servicemanager/pull/150) adds |
| 36 | + a "cookbook" section to the documentation, with an initial document detailing |
| 37 | + the pros and cons of abstract factory usage. |
| 38 | + |
| 39 | +### Deprecated |
| 40 | + |
| 41 | +- Nothing. |
| 42 | + |
| 43 | +### Removed |
| 44 | + |
| 45 | +- Nothing. |
| 46 | + |
| 47 | +### Fixed |
| 48 | + |
| 49 | +- [#106](https://github.com/zendframework/zend-servicemanager/pull/106) adds |
| 50 | + detection of multiple attempts to register the same instance or named abstract |
| 51 | + factory, using a previous instance when detected. You may still use multiple |
| 52 | + discrete instances, however. |
| 53 | + |
5 | 54 | ## 3.1.2 - 2016-12-19 |
6 | 55 |
|
7 | 56 | ### Added |
|
0 commit comments