Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #15096 [DependencyInjection] Allow anonymous DefinitionDecora…
…tor resolving (nicolas-grekas) This PR was merged into the 2.8 branch. Discussion ---------- [DependencyInjection] Allow anonymous DefinitionDecorator resolving | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This PR allows injecting anonymous DefinitionDecorator into services' arguments/properties, such as: ```php $container->register('foo_service_name', 'FooClass') ->setProperty('bar', new DefinitionDecorator('definition_decorated_service')) ; ``` Commits ------- e5763ce [DependencyInjection] Allow anonymous DefinitionDecorator resolving
- Loading branch information
Showing
3 changed files
with
102 additions
and
42 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