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

Commit 1204ec9

Browse files
committed
Added CHANGELOG for #153
1 parent 42176f4 commit 1204ec9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ All notable changes to this project will be documented in this file, in reverse
2222
`Zend\ServiceManager\Tool\FactoryCreator`, which will introspect a given class
2323
and generate a factory for it. It also adds a vendor binary,
2424
`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.
2535

2636
### Deprecated
2737

0 commit comments

Comments
 (0)