From 4904abefa5c1b592276d74a4954ccb565125ec94 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 18 Apr 2016 12:25:15 -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 adc04e0..3693e35 100644 --- a/src/Module.php +++ b/src/Module.php @@ -24,11 +24,12 @@ public function getConfig() /** * Register a specification for the SerializerAdapterManager 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');