Skip to content

Commit

Permalink
ContainerBuilder: fixed class names in meta field SERVICES (fixes fix 6…
Browse files Browse the repository at this point in the history
…cd15c0, which was in fact rather a bug) [Closes #59]
  • Loading branch information
dg committed Feb 21, 2015
1 parent 7f853a7 commit d84b62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ public function generateClasses($className = NULL, $parentName = NULL)
->setValue(array(Container::TYPES => $this->classes));

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

0 comments on commit d84b62d

Please sign in to comment.