3b5caf2a6acfe5a58c82c3cb68207c252c65fc94
[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                 'methods' => array(
29                     'setResolver' => array(
30                         'resolver' => 'Zend\View\TemplatePathStack',
31                         'options'  => array(
32                             'script_paths' => array(
33                                 'application' => __DIR__ . '/../views',
34                             ),
35                         ),
36                     ),
37                 ),
38                 'parameters' => array(
39                     'broker' => 'Zend\View\HelperBroker',
40                 ),
41             ),
42         ),
43     ),
44
45     'routes' => array(
46         'default' => array(
47             'type'    => 'Zend\Mvc\Router\Http\Regex',
48             'options' => array(
49                 'regex'    => '/(?P<controller>[^/]+)(/(?P<action>[^/]+)?)?',
50                 'spec'     => '/%controller%/%action%',
51                 'defaults' => array(
52                     'controller' => 'error',
53                     'action'     => 'index',
54                 ),
55             ),
56         ),
57         'home' => array(
58             'type' => 'Zend\Mvc\Router\Http\Literal',
59             'options' => array(
60                 'route'    => '/',
61                 'defaults' => array(
62                     'controller' => 'index',
63                     'action'     => 'index',
64                 ),
65             ),
66         ),
67     ),
68 );