X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2Fconfig%2Fmodule.config.php;h=6561e263c03407d79cd1f20e565d439cd7b5c726;hb=0f83d0335821ab9b77954f881b59fe7f0a74ad91;hp=4d5eef99e00047387e9ef7d7ea7113b04d7648ba;hpb=c5554b6b41da12c4e98cbffae3ee430a59bc36be;p=zf2.biz%2Fgalerie.git diff --git a/module/Application/config/module.config.php b/module/Application/config/module.config.php index 4d5eef9..6561e26 100644 --- a/module/Application/config/module.config.php +++ b/module/Application/config/module.config.php @@ -9,6 +9,22 @@ return array( 'error' => 'Application\Controller\ErrorController', 'view' => 'Zend\View\PhpRenderer', ), + + // Inject the plugin broker for controller plugins into + // the action controller for use by all controllers that + // extend it. + 'Zend\Mvc\Controller\ActionController' => array( + 'parameters' => array( + 'broker' => 'Zend\Mvc\Controller\PluginBroker', + ), + ), + 'Zend\Mvc\Controller\PluginBroker' => array( + 'parameters' => array( + 'loader' => 'Zend\Mvc\Controller\PluginLoader', + ), + ), + + // Setup the PhpRenderer 'Zend\View\PhpRenderer' => array( 'parameters' => array( 'resolver' => 'Zend\View\TemplatePathStack',