Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #22362 [DI] Populate class of ChildDefinition when its id mat…
…ches 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 ------- 3200d37 [DI] Populate class of ChildDefinition when its id matches an existing FQCN
- Loading branch information
Showing
2 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters