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