From c9f8b6582b25b24461cee1d3384fef3297bc25fa Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 18 Apr 2016 12:22:11 -0500 Subject: [PATCH] Fix the module initializer Initializers actually receive the module manager itself, not the module event. As such, we have to pull the event from the module manager instance. --- src/Module.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Module.php b/src/Module.php index ec2f96e74..96866a92b 100644 --- a/src/Module.php +++ b/src/Module.php @@ -24,11 +24,12 @@ public function getConfig() /** * Register a specification for the ValidatorManager with the ServiceListener. * - * @param \Zend\ModuleManager\ModuleEvent + * @param \Zend\ModuleManager\ModuleManager $moduleManager * @return void */ - public function init($event) + public function init($moduleManager) { + $event = $moduleManager->getEvent(); $container = $event->getParam('ServiceManager'); $serviceListener = $container->get('ServiceListener');