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 8807eaf30b feature #22362 [DI] Populate class of ChildDefinition when its id matches an existing FQCN (nicolas-grekas)
This PR was merged into the 3.3-dev branch.

Discussion
----------

[DI] Populate class of ChildDefinition when its id matches an existing FQCN

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22345
| License       | MIT
| Doc PR        | -

See linked issue for expected DX.
Instead of doing a "continue", let's throw to force the resolution of any ambiguities.
There is a minor potential BC Break, if one uses an ambiguous FQCN as child-definition id in 3.2 or below.
To me, this should be rare, and easy to fix (compile time only).
The DX enhancement this PR provides looks worth it.

> Service definition "App\Foo\Child" has a parent but no class, and its name looks like a FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.

Commits
-------

3200d3738a [DI] Populate class of ChildDefinition when its id matches an existing FQCN
2017-04-10 18:20:21 -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
AutowirePassTest.php [DI] Enhance wording of autowiring exceptions 2017-04-07 10:22:28 +02:00
CheckArgumentsValidityPassTest.php Updated to PHPUnit namespaces 2017-02-20 14:56:45 +01:00
CheckCircularReferencesPassTest.php Merge branch '3.2' 2017-03-21 14:44:47 -07: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 Merge branch '3.2' 2017-02-18 18:35:19 +01:00
IntegrationTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08: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] Restrict autowired registration to "same-vendor" namespaces 2017-04-06 11:28:30 +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
ResolveDefinitionInheritancePassTest.php [DI] Replace wildcard-based methods autowiring by @required annotation 2017-02-28 10:00:46 +01:00
ResolveDefinitionTemplatesPassTest.php [DI] Fix named args overridding 2017-04-10 16:38:35 +02:00
ResolveFactoryClassPassTest.php Updated to PHPUnit namespaces 2017-02-20 14:56:45 +01:00
ResolveInvalidReferencesPassTest.php Revert "feature #20973 [DI] Add getter injection (nicolas-grekas)" 2017-03-25 15:07:47 +01:00
ResolveNamedArgumentsPassTest.php [DI] Add "factory" support to named args and autowiring 2017-04-04 16:31:36 +02: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