Skip to content

Commit b3733d2

Browse files
committed
ContainerBuilder: fixed content of meta field SERVICES
1 parent 379bd41 commit b3733d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/DI/ContainerBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,7 @@ public function generateClasses($className = 'Container', $parentName = NULL)
503503
->setValue(array(Container::TYPES => $this->classes));
504504

505505
foreach ($definitions as $name => $def) {
506-
if ($def->getClass()) {
507-
$meta->value[Container::SERVICES][$name] = $def->getClass();
508-
}
506+
$meta->value[Container::SERVICES][$name] = $def->getImplement() ?: $def->getClass();
509507
foreach ($def->getTags() as $tag => $value) {
510508
$meta->value[Container::TAGS][$tag][$name] = $value;
511509
}

0 commit comments

Comments
 (0)