Update for new Zend\Di and Zend\Code stuff
[zf2.biz/application_blanche.git] / modules / Application / configs / module.config.php
1 <?php
2 return array(
3     'bootstrap_class' => 'Application\Bootstrap',
4     'layout'          => 'layouts/layout.phtml',
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
13             'Zend\View\HelperLoader' => array(
14                 'parameters' => array(
15                     'map' => array(
16                         'url' => 'Application\View\Helper\Url',
17                     ),
18                 ),
19             ),
20
21             'Zend\View\HelperBroker' => array(
22                 'parameters' => array(
23                     'loader' => 'Zend\View\HelperLoader',
24                 ),
25             ),
26
27             'Zend\View\PhpRenderer' => array(
28                 'parameters' => array(
29                         'resolver' => 'Zend\View\TemplatePathStack',
30                         'options'  => array(
31                             'script_paths' => array(
32                                 'application' => __DIR__ . '/../views',
33                             ),
34                         ),
35                     'broker' => 'Zend\View\HelperBroker',
36                 ),
37             ),
38         ),
39     ),
40
41     'routes' => array(
42         'default' => array(
43             'type'    => 'Zend\Mvc\Router\Http\Regex',
44             'options' => array(
45                 'regex'    => '/(?P<controller>[^/]+)(/(?P<action>[^/]+)?)?',
46                 'spec'     => '/%controller%/%action%',
47                 'defaults' => array(
48                     'controller' => 'error',
49                     'action'     => 'index',
50                 ),
51             ),
52         ),
53         'home' => array(
54             'type' => 'Zend\Mvc\Router\Http\Literal',
55             'options' => array(
56                 'route'    => '/',
57                 'defaults' => array(
58                     'controller' => 'index',
59                     'action'     => 'index',
60                 ),
61             ),
62         ),
63     ),
64 );