[DI] Set getter edges as lazy

This commit is contained in:
Nicolas Grekas 2017-02-16 23:39:11 +01:00
parent 8f65fc7ec1
commit 279f6a2512

View File

@ -104,11 +104,16 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass implements Repe
}
$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;