Define parameter type in onBootstrap method of Module.php, this will help newcomers...
authorPavel Galaton <pgalaton@pentalog.fr>
Thu, 13 Sep 2012 14:00:20 +0000 (17:00 +0300)
committerPavel Galaton <pgalaton@pentalog.fr>
Thu, 13 Sep 2012 14:00:20 +0000 (17:00 +0300)
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();