X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FGalerie%2FModule.php;h=d02907620688fa09ad6d96d36431ef588449cc31;hb=a8a6dbc32613045bedebff292f83aedc5380c49c;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=7f8b5cf2ad495bd6939b25b6464c8e63cbc0a571;p=zf2.biz%2Fgalerie.git diff --git a/module/Galerie/Module.php b/module/Galerie/Module.php index e69de29..d029076 100644 --- a/module/Galerie/Module.php +++ b/module/Galerie/Module.php @@ -0,0 +1,67 @@ + array( + __DIR__ . '/autoload_classmap.php', + ), + 'Zend\Loader\StandardAutoloader' => array( + 'namespaces' => array( + __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, + ), + ), + ); + } + + public function getConfig() + { + return include __DIR__ . '/config/module.config.php'; + } + + public function onBootstrap(EventInterface $e) + { + $e->getApplication()->getServiceManager()->get('translator'); + } + + public function getServiceConfig() + { + return array( + 'factories' => array( + 'Galerie\Model\GalerieTable' => function($sm) { + return new GalerieTable( + $sm->get('Zend\Db\Adapter\Adapter') + ); + }, + 'Galerie\Model\GalerieInfoTable' => function($sm) { + return new GalerieInfoTable( + $sm->get('Zend\Db\Adapter\Adapter') + ); + }, + ), + ); + } +}