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

zend-mvc 3.0.1

Compare
Choose a tag to compare
@weierophinney weierophinney released this 23 Jun 20:42
· 273 commits to master since this release

Added

  • #165 adds a new controller factory, LazyControllerAbstractFactory, that provides a Reflection-based approach to instantiating controllers. You may register it either as an abstract factory or as a named factory in your controller configuration:

    'controllers' => [
        'abstract_factories' => [
            'Zend\Mvc\Controller\LazyControllerAbstractFactory`,
        ],
        'factories' => [
            'MyModule\Controller\FooController' => 'Zend\Mvc\Controller\LazyControllerAbstractFactory`,
        ],
    ],

    The factory uses the typehints to lookup services in the container, using aliases for well-known services such as the FilterManager, ValidatorManager, etc. If an array typehint is used with a $config parameter, the config service is injected; otherwise, an empty array is provided. For all other types, a null value is injected.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.