[DI] Set getter edges as lazy
This commit is contained in:
parent
8f65fc7ec1
commit
279f6a2512
@ -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);
|
||||
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user