Merge pull request #20 from akrabat/hotfix/di-for-controller-plugin
authorRyan Mauger <ryan@rmauger.co.uk>
Wed, 18 Jan 2012 08:45:41 +0000 (00:45 -0800)
committerRyan Mauger <ryan@rmauger.co.uk>
Wed, 18 Jan 2012 08:45:41 +0000 (00:45 -0800)
Inject the PluginBroker into the ActionController for controller plugins

module/Application/config/module.config.php

index 4d5eef9..a8e8365 100644 (file)
@@ -9,6 +9,11 @@ return array(
                 'error' => 'Application\Controller\ErrorController',
                 'view'  => 'Zend\View\PhpRenderer',
             ),
+            'Zend\Mvc\Controller\ActionController' => array(
+                'parameters' => array(
+                    'broker'       => 'Zend\Mvc\Controller\PluginBroker',
+                ),
+            ),
             'Zend\View\PhpRenderer' => array(
                 'parameters' => array(
                     'resolver' => 'Zend\View\TemplatePathStack',