Inject the PluginBroker into the ActionController so that we pick up any module's...
[zf2.biz/galerie.git] / module / Application / config / module.config.php
1 <?php
2 return array(
3     'layout'                => 'layout/layout.phtml',
4     'display_exceptions'    => true,
5     'di'                    => array(
6         'instance' => array(
7             'alias' => array(
8                 'index' => 'Application\Controller\IndexController',
9                 'error' => 'Application\Controller\ErrorController',
10                 'view'  => 'Zend\View\PhpRenderer',
11             ),
12             'Zend\Mvc\Controller\ActionController' => array(
13                 'parameters' => array(
14                     'broker'       => 'Zend\Mvc\Controller\PluginBroker',
15                 ),
16             ),
17             'Zend\View\PhpRenderer' => array(
18                 'parameters' => array(
19                     'resolver' => 'Zend\View\TemplatePathStack',
20                     'options'  => array(
21                         'script_paths' => array(
22                             'application' => __DIR__ . '/../view',
23                         ),
24                     ),
25                 ),
26             ),
27         ),
28     ),
29     'routes' => array(
30         'default' => array(
31             'type'    => 'Zend\Mvc\Router\Http\Segment',
32             'options' => array(
33                 'route'    => '/[:controller[/:action]]',
34                 'constraints' => array(
35                     'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
36                     'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
37                 ),
38                 'defaults' => array(
39                     'controller' => 'index',
40                     'action'     => 'index',
41                 ),
42             ),
43         ),
44         'home' => array(
45             'type' => 'Zend\Mvc\Router\Http\Literal',
46             'options' => array(
47                 'route'    => '/',
48                 'defaults' => array(
49                     'controller' => 'index',
50                     'action'     => 'index',
51                 ),
52             ),
53         ),
54     ),
55 );