Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DI] Add "_defaults" key to Yaml services configuration
- Loading branch information
1 parent
306a060
commit 7b4a18b
Showing
3 changed files
with
122 additions
and
16 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
30 changes: 30 additions & 0 deletions
30
src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services28.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,30 @@ | ||
services: | ||
_defaults: | ||
public: false | ||
autowire: true | ||
tags: | ||
- name: foo | ||
|
||
with_defaults: | ||
class: Foo | ||
|
||
with_null: | ||
class: Foo | ||
public: ~ | ||
autowire: ~ | ||
tags: ~ | ||
|
||
no_defaults: | ||
class: Foo | ||
public: true | ||
autowire: false | ||
tags: [] | ||
|
||
no_defaults_child: | ||
parent: no_defaults | ||
autowire: ~ | ||
tags: | ||
- name: bar | ||
|
||
with_defaults_child: | ||
parent: with_defaults |
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