Permalink
Browse files

Fix self resolution of the AssetManager.

  • Loading branch information...
1 parent 0b766e5 commit 42ffdb56b4e94d8b988c46ee754db4f71768c01c @trq trq committed Feb 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Proem/Service/AssetManager.php
@@ -234,7 +234,7 @@ public function getDependencies($params)
foreach ($params as $param) {
$dependency = $param->getClass();
if ($dependency !== null) {
- if ($dependency->name == 'AssetManager' || $dependency->name == 'AssetManagerInterface') {
+ if ($dependency->name == 'Proem\Service\AssetManager' || $dependency->name == 'Proem\Service\AssetManagerInterface') {
$deps[] = $this;
} else {
$deps[] = $this->resolve($dependency->name);
@@ -316,7 +316,7 @@ protected function autoResolve($name, $params)
return $object;
}
} catch (\ReflectionException $e) {
- throw new \LogicException("Unable to resolve '{$name}'");
+ throw new \LogicException("Unable to resolve '{$name}'");
}
}
}

0 comments on commit 42ffdb5

Please sign in to comment.