N°8910 - Upgrade Symfony packages (#811)

This commit is contained in:
Benjamin Dalsass
2026-02-23 06:54:26 +01:00
committed by GitHub
parent b91e6c384a
commit 4853ca444e
224 changed files with 4758 additions and 1778 deletions

View File

@@ -41,6 +41,7 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass
private bool $lazy;
private bool $byConstructor;
private bool $byFactory;
private bool $byMultiUseArgument;
private array $definitions;
private array $aliases;
@@ -67,6 +68,7 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass
$this->lazy = false;
$this->byConstructor = false;
$this->byFactory = false;
$this->byMultiUseArgument = false;
$this->definitions = $container->getDefinitions();
$this->aliases = $container->getAliases();
@@ -89,7 +91,12 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass
if ($value instanceof ArgumentInterface) {
$this->lazy = !$this->byFactory || !$value instanceof IteratorArgument;
$byMultiUseArgument = $this->byMultiUseArgument;
if ($value instanceof IteratorArgument) {
$this->byMultiUseArgument = true;
}
parent::processValue($value->getValues());
$this->byMultiUseArgument = $byMultiUseArgument;
$this->lazy = $lazy;
return $value;
@@ -106,7 +113,8 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass
$value,
$this->lazy || ($this->hasProxyDumper && $targetDefinition?->isLazy()),
ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE === $value->getInvalidBehavior(),
$this->byConstructor
$this->byConstructor,
$this->byMultiUseArgument
);
if ($inExpression) {
@@ -117,7 +125,9 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass
$targetDefinition,
$value,
$this->lazy || $targetDefinition?->isLazy(),
true
true,
$this->byConstructor,
$this->byMultiUseArgument
);
}