From: Pavel Galaton Date: Thu, 13 Sep 2012 14:00:20 +0000 (+0300) Subject: Define parameter type in onBootstrap method of Module.php, this will help newcomers... X-Git-Url: http://git.inspyration.org/?p=zf2.biz%2Fapplication_blanche.git;a=commitdiff_plain;h=9616c47598a99e9027530f4f330bb312daa4f136 Define parameter type in onBootstrap method of Module.php, this will help newcomers to see autocomplete in their IDE's and ease of understanding what $e is --- diff --git a/module/Application/Module.php b/module/Application/Module.php index 86d9d4e..7786cd8 100644 --- a/module/Application/Module.php +++ b/module/Application/Module.php @@ -10,10 +10,11 @@ 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();