Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 279f6a2

Browse filesBrowse files
[DI] Set getter edges as lazy
1 parent 8f65fc7 commit 279f6a2
Copy full SHA for 279f6a2

File tree

1 file changed

+10
-5
lines changed
Filter options

1 file changed

+10
-5
lines changed

‎src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php
+10-5Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,16 @@ protected function processValue($value, $isRoot = false)
104104
}
105105
$this->lazy = false;
106106

107-
if ($this->onlyConstructorArguments) {
108-
$this->processValue($value->getFactory());
109-
$this->processValue($value->getArguments());
110-
} else {
111-
parent::processValue($value, $isRoot);
107+
$this->processValue($value->getFactory());
108+
$this->processValue($value->getArguments());
109+
110+
if (!$this->onlyConstructorArguments) {
111+
$this->processValue($value->getProperties());
112+
$this->lazy = true;
113+
$this->processValue($value->getOverriddenGetters());
114+
$this->lazy = false;
115+
$this->processValue($value->getMethodCalls());
116+
$this->processValue($value->getConfigurator());
112117
}
113118
$this->lazy = $lazy;
114119

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.