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

Commit

Permalink
Merge branch 'hotfix/initializer'
Browse files Browse the repository at this point in the history
Close #15
  • Loading branch information
weierophinney committed Apr 18, 2016
2 parents eb4224e + 297a614 commit 8b6ff84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Expand Up @@ -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

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

### Fixed

- Nothing.
- [#15](https://github.com/zendframework/zend-serializer/pull/15) fixes the
`Module::init()` method to properly receive a `ModuleManager` instance, and
not expect a `ModuleEvent`.

## 2.7.0 - 2016-04-06

Expand Down
5 changes: 3 additions & 2 deletions src/Module.php
Expand Up @@ -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');

Expand Down

0 comments on commit 8b6ff84

Please sign in to comment.