Skip to content

Commit

Permalink
ContainerBuilder: fixed content of meta field SERVICES
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 5, 2015
1 parent 379bd41 commit 6cd15c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DI/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,7 @@ public function generateClasses($className = 'Container', $parentName = NULL)
->setValue(array(Container::TYPES => $this->classes));

foreach ($definitions as $name => $def) {
if ($def->getClass()) {
$meta->value[Container::SERVICES][$name] = $def->getClass();
}
$meta->value[Container::SERVICES][$name] = ($def->getImplement() ?: $def->getClass()) ?: NULL;
foreach ($def->getTags() as $tag => $value) {
$meta->value[Container::TAGS][$tag][$name] = $value;
}
Expand Down

0 comments on commit 6cd15c0

Please sign in to comment.