X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2FModule.php;h=86d9d4e2f47afd28d25ae691d550b01af63cee39;hb=3d8c513862853e1ebea7158cda8bd45040091613;hp=a7dd66b6864ceff92c9b7ec0732c6d9b17b37d71;hpb=1917377993113ece3619d55135f5b38b2cb2cc35;p=zf2.biz%2Fapplication_blanche.git diff --git a/module/Application/Module.php b/module/Application/Module.php index a7dd66b..86d9d4e 100644 --- a/module/Application/Module.php +++ b/module/Application/Module.php @@ -1,15 +1,34 @@ getApplication()->getServiceManager()->get('translator'); + $eventManager = $e->getApplication()->getEventManager(); + $moduleRouteListener = new ModuleRouteListener(); + $moduleRouteListener->attach($eventManager); + } + + public function getConfig() + { + return include __DIR__ . '/config/module.config.php'; + } + public function getAutoloaderConfig() { return array( - 'Zend\Loader\ClassMapAutoloader' => array( - __DIR__ . '/autoload_classmap.php', - ), 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, @@ -17,9 +36,4 @@ class Module ), ); } - - public function getConfig() - { - return include __DIR__ . '/config/module.config.php'; - } }