Skip to content

Commit

Permalink
Merge pull request zendframework#81 from Ocramius/feature/abstract-di…
Browse files Browse the repository at this point in the history
…-factory-controller-whitelist

Synchronizing with zendframework/zendframework#2005
  • Loading branch information
weierophinney committed Jul 31, 2012
2 parents fd45372 + 108dcf8 commit 4f9228f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/languages/en/modules/zend.mvc.services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ This is the one service class referenced directly in the bootstrapping. It provi
``factories`` subkeys. These are used to configure a scoped service manager container, from which controllers
will be retrieved.

Additionally, the scoped container is configured to use the ``Di`` service as both an initializer as well as an
abstract service factory -- effectively allowing you to fall back to DI in order to retrieve your controllers.
Additionally, the scoped container is configured to use the ``Di`` service as an abstract service factory --
effectively allowing you to fall back to DI in order to retrieve your controllers.
If you want to use ``Zend\Di`` to retrieve your controllers, you must white-list them in your DI configuration
under the ``allowed_controllers`` key (otherwise, they will just be ignored).

Finally, if the loaded controller is ``Pluggable``, an initializer will inject it with the
``ControllerPluginBroker`` service.
Expand Down

0 comments on commit 4f9228f

Please sign in to comment.