diff --git a/CHANGELOG.md b/CHANGELOG.md index 0105fcf0..38d9a057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file, in reverse chronological order by release. -## 2.7.1 - TBD +## 2.7.1 - 2016-04-18 ### Added @@ -18,7 +18,9 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed -- Nothing. +- [#27](https://github.com/zendframework/zend-filter/pull/27) fixes the + `Module::init()` method to properly receive a `ModuleManager` instance, and + not expect a `ModuleEvent`. ## 2.7.0 - 2016-04-06 diff --git a/src/Module.php b/src/Module.php index 54d42d38..f7e2566f 100644 --- a/src/Module.php +++ b/src/Module.php @@ -24,11 +24,12 @@ public function getConfig() /** * Register a specification for the FilterManager 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');