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

Commit 6417097

Browse files
committed
Added CHANGELOG for #165
1 parent 00ba958 commit 6417097

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

CHANGELOG.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,32 @@
22

33
All 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

0 commit comments

Comments
 (0)