initial commit
[namibia] / module / Retail / config / module.config.php
1 <?php
2 namespace Retail;
3 return array(
4     'doctrine' => array(
5         'driver' => array(
6             __NAMESPACE__ . '_driver' => array(
7                 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
8                 'cache' => 'array',
9                 'paths' => array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Entity')
10             ),
11             'orm_default' => array(
12                 'drivers' => array(
13                     __NAMESPACE__ . '\Entity' => __NAMESPACE__ . '_driver'
14                 )
15             )
16         )
17     ),
18                 'controllers' => array(
19                                 'invokables' => array(
20                                                 'Retail\Controller\Api' => 'Retail\Controller\ApiController',
21                                                 'Retail\Controller\Retail' => 'Retail\Controller\RetailController'
22                                 ),
23                 ),
24                 'router' => array(
25                                 'routes' => array(
26                                                 'retail' => array(
27                                                                 'type'    => 'segment',
28                                                                 'options' => array(
29                                                                                 'route'    => '/api/xml-rpc',
30                                                                                 'defaults' => array(
31                                                                                                 'controller' => 'Retail\Controller\Api',
32                                                                                                 'action'     => 'index',
33                                                                                 ),
34                                                                 ),
35                                                 )
36                                 ),
37                 ),
38             'console' => array(
39                 'router' => array(
40                     'routes' => array(
41                         'retailprocess' => array(
42                             'options' => array(
43                                 'route'    => 'retail process',
44                                 'defaults' => array(
45                                     'controller' => 'Retail\Controller\Retail',
46                                     'action'     => 'process'
47                                 )
48                             )
49                         )
50                     )
51                 )
52             ),
53                 'view_manager' => array(
54                                 'template_path_stack' => array(
55                                                 'retail' => __DIR__ . '/../view',
56                                 ),
57         'strategies' => array(
58             'ViewJsonStrategy',
59         )
60 ));