diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php b/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php index e6333c91330c7..b949d80874b57 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php @@ -104,11 +104,16 @@ protected function processValue($value, $isRoot = false) } $this->lazy = false; - if ($this->onlyConstructorArguments) { - $this->processValue($value->getFactory()); - $this->processValue($value->getArguments()); - } else { - parent::processValue($value, $isRoot); + $this->processValue($value->getFactory()); + $this->processValue($value->getArguments()); + + if (!$this->onlyConstructorArguments) { + $this->processValue($value->getProperties()); + $this->lazy = true; + $this->processValue($value->getOverriddenGetters()); + $this->lazy = false; + $this->processValue($value->getMethodCalls()); + $this->processValue($value->getConfigurator()); } $this->lazy = $lazy;