Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'release'

  • Loading branch information...
commit 069c6ef4f61c91dc876ac755b98cfeb6e66f846f 2 parents 4974628 + adbd281
@weierophinney weierophinney authored
View
4 library/Zend/ModuleManager/Listener/LocatorRegistrationListener.php
@@ -67,6 +67,10 @@ public function onLoadModulesPost(Event $e)
$moduleManager = $e->getTarget();
$events = $moduleManager->getEventManager()->getSharedManager();
+ if (!$events) {
+ return;
+ }
+
// Shared instance for module manager
$events->attach('Zend\Mvc\Application', MvcEvent::EVENT_BOOTSTRAP, function ($e) use ($moduleManager) {
$moduleClassName = get_class($moduleManager);
Please sign in to comment.
Something went wrong with that request. Please try again.