diff --git a/src/DI/ContainerBuilder.php b/src/DI/ContainerBuilder.php index 91a633912..afbb030ce 100644 --- a/src/DI/ContainerBuilder.php +++ b/src/DI/ContainerBuilder.php @@ -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; }