3a33540b95d5a6ae57b3729697ebfd82be48f122
[zf2.biz/galerie.git] / module / Application / Module.php
1 <?php
2
3 namespace Application;
4
5 use Zend\Mvc\ModuleRouteListener;
6
7 class Module
8 {
9     public function onBootstrap($e)
10     {
11         $e->getApplication()->getServiceManager()->get('translator');
12         $eventManager        = $e->getApplication()->getEventManager();
13         $moduleRouteListener = new ModuleRouteListener();
14         $moduleRouteListener->attach($eventManager);
15     }
16
17     public function getConfig()
18     {
19         return include __DIR__ . '/config/module.config.php';
20     }
21
22     public function getAutoloaderConfig()
23     {
24         return array(
25             'Zend\Loader\StandardAutoloader' => array(
26                 'namespaces' => array(
27                     __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
28                 ),
29             ),
30         );
31     }
32 }