Skip to content

Commit

Permalink
Fix self resolution of the AssetManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
trq committed Feb 4, 2013
1 parent 0b766e5 commit 42ffdb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Proem/Service/AssetManager.php
Expand Up @@ -234,7 +234,7 @@ public function getDependencies($params)
foreach ($params as $param) { foreach ($params as $param) {
$dependency = $param->getClass(); $dependency = $param->getClass();
if ($dependency !== null) { if ($dependency !== null) {
if ($dependency->name == 'AssetManager' || $dependency->name == 'AssetManagerInterface') { if ($dependency->name == 'Proem\Service\AssetManager' || $dependency->name == 'Proem\Service\AssetManagerInterface') {
$deps[] = $this; $deps[] = $this;
} else { } else {
$deps[] = $this->resolve($dependency->name); $deps[] = $this->resolve($dependency->name);
Expand Down Expand Up @@ -316,7 +316,7 @@ protected function autoResolve($name, $params)
return $object; return $object;
} }
} catch (\ReflectionException $e) { } 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.