Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #19643 [DependencyInjection] Fix service autowiring inheritance (…
…chalasr) This PR was merged into the 2.8 branch. Discussion ---------- [DependencyInjection] Fix service autowiring inheritance | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19615 | License | MIT | Doc PR | n/a This makes services inherit the `autowire` attribute from their parent and fix the ability to override it from the child. Fixed cases: - Simple inheritance ```yaml parent: class: Foo abstract: true autowire: true child: class: Foo ``` - Set in the child (only) ```yaml parent: class: Foo abstract: true child: class: Foo autowire: true ``` - Set in the parent, changed in the child ```yaml parent: class: Foo abstract: true autowire: true child: class: Foo autowire: false ``` Commits ------- fb95bdc [DIC] Fix service autowiring inheritance
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 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
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