Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 5838e60

Browse files
committed
Merge branch 'hotfix/initializer' into develop
Forward port #59
2 parents 167814b + dfff7a4 commit 5838e60

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ All notable changes to this project will be documented in this file, in reverse
2020

2121
- Nothing.
2222

23-
## 2.8.1 - TBD
23+
## 2.8.1 - 2016-04-18
2424

2525
### Added
2626

@@ -36,7 +36,9 @@ All notable changes to this project will be documented in this file, in reverse
3636

3737
### Fixed
3838

39-
- Nothing.
39+
- [#59](https://github.com/zendframework/zend-form/pull/59) fixes the
40+
`Module::init()` method to properly receive a `ModuleManager` instance, and
41+
not expect a `ModuleEvent`.
4042

4143
## 2.8.0 - 2016-04-07
4244

src/Module.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ public function getConfig()
2626
/**
2727
* Register a specification for the FormElementManager with the ServiceListener.
2828
*
29-
* @param \Zend\ModuleManager\ModuleEvent
29+
* @param \Zend\ModuleManager\ModuleManager $moduleManager
3030
* @return void
3131
*/
32-
public function init($event)
32+
public function init($moduleManager)
3333
{
34+
$event = $moduleManager->getEvent();
3435
$container = $event->getParam('ServiceManager');
3536
$serviceListener = $container->get('ServiceListener');
3637

0 commit comments

Comments
 (0)