9cd68ee77e
This PR was squashed before being merged into the 3.3 branch (closes #22993).
Discussion
----------
[DI] Autowiring exception thrown when inlined service is removed
| Q | A
| ------------- | ---
| Branch? | 3.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | yes
| Deprecations? | yes (on a new & internal method)
| Tests pass? | yes
| Fixed tickets | #22977
| License | MIT
| Doc PR | n/a
We suppress autowiring exceptions if a service is ultimately removed from the container. This fixes a bug where we incorrectly report that a service was NOT removed, when really, it WAS removed. This happens when `ServiceA` is inlined in `ServiceB`... but then `ServiceB` is removed from the container for being unused.
Commits
-------
|
||
---|---|---|
.. | ||
AnalyzeServiceReferencesPassTest.php | ||
AutoAliasServicePassTest.php | ||
AutowireExceptionPassTest.php | ||
AutowirePassTest.php | ||
CheckArgumentsValidityPassTest.php | ||
CheckCircularReferencesPassTest.php | ||
CheckDefinitionValidityPassTest.php | ||
CheckExceptionOnInvalidReferenceBehaviorPassTest.php | ||
CheckReferenceValidityPassTest.php | ||
DecoratorServicePassTest.php | ||
ExtensionCompilerPassTest.php | ||
FactoryReturnTypePassTest.php | ||
InlineServiceDefinitionsPassTest.php | ||
IntegrationTest.php | ||
MergeExtensionConfigurationPassTest.php | ||
OptionalServiceClass.php | ||
PassConfigTest.php | ||
PriorityTaggedServiceTraitTest.php | ||
RegisterServiceSubscribersPassTest.php | ||
RemoveUnusedDefinitionsPassTest.php | ||
ReplaceAliasByActualDefinitionPassTest.php | ||
ResolveClassPassTest.php | ||
ResolveDefinitionTemplatesPassTest.php | ||
ResolveFactoryClassPassTest.php | ||
ResolveInstanceofConditionalsPassTest.php | ||
ResolveInvalidReferencesPassTest.php | ||
ResolveNamedArgumentsPassTest.php | ||
ResolveParameterPlaceHoldersPassTest.php | ||
ResolveReferencesToAliasesPassTest.php |