-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #13892 [DependencyInjection] Improved yaml syntax (hason)
This PR was merged into the 2.7 branch. Discussion ---------- [DependencyInjection] Improved yaml syntax | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This PR adds support for this: ```yaml services: manager: class: UserManager arguments: - true calls: - method: setLogger arguments: - @logger - method: setClass arguments: - User tags: - name: manager alias: user ``` Commits ------- 0eb34f3 [DependencyInjection] Added support for keys "method" and "arguments" in "calls" statement for yaml format
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 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
15 changes: 15 additions & 0 deletions
15
src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services21.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
manager: | ||
class: UserManager | ||
arguments: | ||
- true | ||
calls: | ||
- method: setLogger | ||
arguments: | ||
- @logger | ||
- method: setClass | ||
arguments: | ||
- User | ||
tags: | ||
- name: manager | ||
alias: user |
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