Skip to content

Commit

Permalink
[DependencyInjection] create inlined private service from it's defini…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
everzet committed May 23, 2011
1 parent 98b0bdc commit b6ce137
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -742,8 +742,10 @@ public function resolveServices($value)
foreach ($value as &$v) {
$v = $this->resolveServices($v);
}
} else if (is_object($value) && $value instanceof Reference) {
} elseif (is_object($value) && $value instanceof Reference) {
$value = $this->get((string) $value, $value->getInvalidBehavior());
} elseif (is_object($value) && $value instanceof Definition) {
$value = $this->createService($value, null);
}

return $value;
Expand Down

0 comments on commit b6ce137

Please sign in to comment.