You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#61616 [DependencyInjection] Minor optims (nicolas-grekas)
This PR was merged into the 7.4 branch.
Discussion
----------
[DependencyInjection] Minor optims
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
Found while reading the code once again :)
Commits
-------
5eeafbb [DependencyInjection] Minor optims
if (str_contains($r->getDocComment() ?: '', "\n * @deprecated ")) {
1178
1172
trigger_deprecation('', '', 'The "%s" service relies on the deprecated "%s" factory class. It should either be deprecated or its factory upgraded.', $id, $r->name);
1179
1173
}
1180
1174
}
1181
1175
} else {
1182
-
$r = new \ReflectionClass($class);
1176
+
$r = $this->classReflectors[$class] ??= new \ReflectionClass($class);
1183
1177
1184
1178
if (\is_object($tryProxy)) {
1185
1179
if ($r->getConstructor()) {
@@ -1191,7 +1185,7 @@ private function createService(Definition $definition, array &$inlineServices, b
trigger_deprecation('', '', 'The "%s" service relies on the deprecated "%s" class. It should either be deprecated or its implementation upgraded.', $id, $r->name);
0 commit comments