Initial wiring of ServiceManager over DI for MVC
[zf2.biz/galerie.git] / module / Application / config / module.config.php
1 <?php
2 return array(
3     'routes' => array(
4         'default' => array(
5             'type'    => 'Zend\Mvc\Router\Http\Segment',
6             'options' => array(
7                 'route'    => '/[:controller[/:action]]',
8                 'constraints' => array(
9                     'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
10                     'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
11                 ),
12                 'defaults' => array(
13                     'controller' => 'IndexController',
14                     'action'     => 'index',
15                 ),
16             ),
17         ),
18         'home' => array(
19             'type' => 'Zend\Mvc\Router\Http\Literal',
20             'options' => array(
21                 'route'    => '/',
22                 'defaults' => array(
23                     'controller' => 'IndexController',
24                     'action'     => 'index',
25                 ),
26             ),
27         ),
28     ),
29     'controllers' => array(
30         'IndexController' => 'Application\Controller\IndexController'
31     ),
32     'view' => array(
33         'display_not_found_reason' => true,
34         'display_exceptions' => true,
35         'not_found_template' => 'error/404',
36         'exception_template' => 'error/index',
37         'template_map' => array(
38             'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
39             'index/index'   => __DIR__ . '/../view/index/index.phtml',
40             'error/404'     => __DIR__ . '/../view/error/404.phtml',
41             'error/index'   => __DIR__ . '/../view/error/index.phtml',
42         ),
43         'template_path_stack' => array(
44             'application' => __DIR__ . '/../view',
45         ),
46     ),
47     'db' => array(
48         'driver' => 'Pdo-Sqlite',
49         'dbname' => 'path/to/data/database.sqlite'
50     )
51 );