Define parameter type in onBootstrap method of Module.php, this will help newcomers...
[zf2.biz/galerie.git] / module / Application / Module.php
index 86d9d4e..7786cd8 100644 (file)
 namespace Application;
 
 use Zend\Mvc\ModuleRouteListener;
+use Zend\Mvc\MvcEvent;
 
 class Module
 {
-    public function onBootstrap($e)
+    public function onBootstrap(MvcEvent $e)
     {
         $e->getApplication()->getServiceManager()->get('translator');
         $eventManager        = $e->getApplication()->getEventManager();