This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/DependencyInjection/Tests/Compiler
Fabien Potencier 9cd68ee77e bug #22993 [DI] Autowiring exception thrown when inlined service is removed (weaverryan)
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
-------

793b9a001f [DI] Autowiring exception thrown when inlined service is removed
2017-05-31 11:16:22 -07:00
..
AnalyzeServiceReferencesPassTest.php Merge branch '3.2' 2017-02-18 18:35:19 +01:00
AutoAliasServicePassTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
AutowireExceptionPassTest.php [DI] Autowiring exception thrown when inlined service is removed 2017-05-31 11:16:20 -07:00
AutowirePassTest.php Improving deprecation message when hitting the "deprecated type" lookup, but an alias is available 2017-05-31 13:54:02 -04:00
CheckArgumentsValidityPassTest.php Updated to PHPUnit namespaces 2017-02-20 14:56:45 +01:00
CheckCircularReferencesPassTest.php fix remaining risky tests 2017-04-12 20:55:56 +02:00
CheckDefinitionValidityPassTest.php Merge branch '2.8' into 3.2 2017-03-21 14:44:32 -07:00
CheckExceptionOnInvalidReferenceBehaviorPassTest.php fix some risky tests 2017-03-20 16:03:41 +01:00
CheckReferenceValidityPassTest.php Merge branch '2.8' into 3.2 2017-03-21 14:44:32 -07:00
DecoratorServicePassTest.php Merge branch '3.2' 2017-02-18 18:35:19 +01:00
ExtensionCompilerPassTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
FactoryReturnTypePassTest.php Refactored other PHPUnit method calls to work with namespaced PHPUnit 6 2017-02-21 11:04:38 +01:00
InlineServiceDefinitionsPassTest.php [DI] Autowiring exception thrown when inlined service is removed 2017-05-31 11:16:20 -07:00
IntegrationTest.php [DI] Defaults to public=false in all service config files 2017-05-03 19:24:51 +02:00
MergeExtensionConfigurationPassTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
OptionalServiceClass.php [DependencyInjection] Tests for AutowirePass with missing parent class 2016-04-20 14:07:35 +02:00
PassConfigTest.php Merge branch '3.2' 2017-02-20 14:49:17 +01:00
PriorityTaggedServiceTraitTest.php Updated PHPUnit namespaces 2017-02-20 14:34:33 +01:00
RegisterServiceSubscribersPassTest.php [DI] Allow service subscribers to leverage autowiring to know where the locator should be injected 2017-04-19 21:52:02 +02:00
RemoveUnusedDefinitionsPassTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
ReplaceAliasByActualDefinitionPassTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
ResolveClassPassTest.php [DI] Populate class of ChildDefinition when its id matches an existing FQCN 2017-04-10 18:46:19 +02:00
ResolveDefinitionTemplatesPassTest.php Not allowing autoconfigure, instanceofConditionals or defaults for ChildDefinition 2017-04-28 17:09:21 -04:00
ResolveFactoryClassPassTest.php Updated to PHPUnit namespaces 2017-02-20 14:56:45 +01:00
ResolveInstanceofConditionalsPassTest.php Making tags under _defaults always apply and removing inherit_tags entirely 2017-05-01 09:36:02 -04:00
ResolveInvalidReferencesPassTest.php Revert "feature #20973 [DI] Add getter injection (nicolas-grekas)" 2017-03-25 15:07:47 +01:00
ResolveNamedArgumentsPassTest.php Fixing bug where indexed args were set wrong in pass in some situations 2017-05-09 05:53:08 -04:00
ResolveParameterPlaceHoldersPassTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
ResolveReferencesToAliasesPassTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00