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

Commit c9f8b65

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 a5be600 commit c9f8b65

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
@@ -24,11 +24,12 @@ public function getConfig()
2424
/**
2525
* Register a specification for the ValidatorManager with the ServiceListener.
2626
*
27-
* @param \Zend\ModuleManager\ModuleEvent
27+
* @param \Zend\ModuleManager\ModuleManager $moduleManager
2828
* @return void
2929
*/
30-
public function init($event)
30+
public function init($moduleManager)
3131
{
32+
$event = $moduleManager->getEvent();
3233
$container = $event->getParam('ServiceManager');
3334
$serviceListener = $container->get('ServiceListener');
3435

0 commit comments

Comments
 (0)