diff --git a/CHANGELOG.md b/CHANGELOG.md index b7fc0492..dba46e30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,7 @@ All notable changes to this project will be documented in this file, in reverse - Nothing. -## 2.7.1 - TBD +## 2.7.1 - 2016-04-18 ### Added @@ -36,7 +36,9 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed -- Nothing. +- [#104](https://github.com/zendframework/zend-inputfilter/pull/104) fixes the + `Module::init()` method to properly receive a `ModuleManager` instance, and + not expect a `ModuleEvent`. ## 2.7.0 - 2016-04-07 diff --git a/src/Module.php b/src/Module.php index 96f0a837..321045fb 100644 --- a/src/Module.php +++ b/src/Module.php @@ -24,11 +24,12 @@ public function getConfig() /** * Register a specification for the InputFilterManager 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');