Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2241 from weierophinney/hotfix/2235

Remove usage of "application" EM context
  • Loading branch information...
commit 57c7d09278d0f2db3a1c1a63eac4277f9ab7cf72 2 parents 4c6769a + 7abc7f2
@EvanDotPro EvanDotPro authored
View
4 library/Zend/ModuleManager/Listener/LocatorRegistrationListener.php
@@ -67,7 +67,7 @@ public function onLoadModulesPost(Event $e)
$events = $moduleManager->getEventManager()->getSharedManager();
// Shared instance for module manager
- $events->attach('application', 'bootstrap', function ($e) use ($moduleManager) {
+ $events->attach('Zend\Mvc\Application', 'bootstrap', function ($e) use ($moduleManager) {
$moduleClassName = get_class($moduleManager);
$application = $e->getApplication();
$services = $application->getServiceManager();
@@ -81,7 +81,7 @@ public function onLoadModulesPost(Event $e)
}
// Attach to the bootstrap event if there are modules we need to process
- $events->attach('application', 'bootstrap', array($this, 'onBootstrap'), 1000);
+ $events->attach('Zend\Mvc\Application', 'bootstrap', array($this, 'onBootstrap'), 1000);
}
/**
View
2  library/Zend/ModuleManager/Listener/OnBootstrapListener.php
@@ -39,6 +39,6 @@ public function __invoke(ModuleEvent $e)
$moduleManager = $e->getTarget();
$events = $moduleManager->getEventManager();
$sharedEvents = $events->getSharedManager();
- $sharedEvents->attach('application', 'bootstrap', array($module, 'onBootstrap'));
+ $sharedEvents->attach('Zend\Mvc\Application', 'bootstrap', array($module, 'onBootstrap'));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.