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

Commit 793e141

Browse files
committed
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.
1 parent a7bcb98 commit 793e141

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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)