From d84b62d31ba8c71e02489be771fd807ae4525e32 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sat, 21 Feb 2015 17:35:37 +0100 Subject: [PATCH] ContainerBuilder: fixed class names in meta field SERVICES (fixes fix 6cd15c03, which was in fact rather a bug) [Closes #59] --- src/DI/ContainerBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }