Permalink
Browse files

Merge pull request #81 from Ocramius/feature/abstract-di-factory-cont…

…roller-whitelist

Synchronizing with zendframework/zendframework#2005
  • Loading branch information...
2 parents fd45372 + 108dcf8 commit 4f9228f3bced58a9b39927020161128d4c402bb2 @weierophinney weierophinney committed Jul 31, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 docs/languages/en/modules/zend.mvc.services.rst
@@ -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.

0 comments on commit 4f9228f

Please sign in to comment.