Corrections diverses
[zf2.biz/galerie.git] / module / Auth / Module.php
1 <?php
2 /**
3  * Application blanche   (http://zf2.biz)
4  * utiise Zend Framework (http://framework.zend.com/)
5  *
6  * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
7  * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
8  * @license   http://framework.zend.com/license/new-bsd New BSD License
9  */
10
11 namespace Auth;
12
13 use Zend\Mvc\ModuleRouteListener;
14 use Zend\Mvc\MvcEvent;
15
16 class Module
17 {
18     public function onBootstrap(MvcEvent $e)
19     {
20         $e->getApplication()->getServiceManager()->get('translator');
21         $eventManager        = $e->getApplication()->getEventManager();
22         $moduleRouteListener = new ModuleRouteListener();
23         $moduleRouteListener->attach($eventManager);
24     }
25
26     public function getConfig()
27     {
28         return include __DIR__ . '/config/module.config.php';
29     }
30
31     public function getAutoloaderConfig()
32     {
33         return array(
34             'Zend\Loader\ClassMapAutoloader' => array(
35                 __DIR__ . '/config/autoload_classmap.php',
36             ),
37         );
38     }
39
40 }