Permalink
Browse files

Get Zend\Mvc\Application by target from event

  • Loading branch information...
1 parent b609abd commit 8d15b4c20ff879d825271c47172b25b391cf3efa Jurian Sluiman committed Mar 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Mvc/Router/InjectRouteMatch.php
@@ -40,7 +40,7 @@ public function __invoke(MvcEvent $e)
return;
}
- $im = $e->getParam('application')->getLocator()->instanceManager();
+ $im = $e->getTarget()->getLocator()->instanceManager();
$className = get_class($routeMatch);
if (!$im->hasSharedInstance($className)) {
$im->addSharedInstance($routeMatch, $className);

0 comments on commit 8d15b4c

Please sign in to comment.