This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file, in reverse chronological order by release.
44
5- ## 3.0.1 - TBD
5+ ## 3.0.1 - 2016-06-23
66
77### Added
88
9- - Nothing.
9+ - [ #165 ] ( https://github.com/zendframework/zend-mvc/pull/165 ) adds a new
10+ controller factory, ` LazyControllerAbstractFactory ` , that provides a
11+ Reflection-based approach to instantiating controllers. You may register it
12+ either as an abstract factory or as a named factory in your controller
13+ configuration:
14+
15+ ``` php
16+ 'controllers' => [
17+ 'abstract_factories' => [
18+ 'Zend\Mvc\Controller\LazyControllerAbstractFactory`,
19+ ],
20+ 'factories' => [
21+ 'MyModule\Controller\FooController' => 'Zend\Mvc\Controller\LazyControllerAbstractFactory`,
22+ ],
23+ ],
24+ ```
25+
26+ The factory uses the typehints to lookup services in the container, using
27+ aliases for well-known services such as the ` FilterManager ` ,
28+ ` ValidatorManager ` , etc. If an ` array ` typehint is used with a ` $config `
29+ parameter, the ` config ` service is injected; otherwise, an empty array is
30+ provided. For all other types, a null value is injected.
1031
1132### Deprecated
1233
You can’t perform that action at this time.
0 commit comments