Yaffs site version 1.1
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / yaml / services6.yml
1 services:
2     foo: { class: FooClass }
3     baz: { class: BazClass }
4     not_shared: { class: FooClass, shared: false }
5     file: { class: FooClass, file: '%path%/foo.php' }
6     arguments: { class: FooClass, arguments: [foo, '@foo', [true, false]] }
7     configurator1: { class: FooClass, configurator: sc_configure }
8     configurator2: { class: FooClass, configurator: ['@baz', configure] }
9     configurator3: { class: FooClass, configurator: [BazClass, configureStatic] }
10     method_call1:
11         class: FooClass
12         calls:
13             - [ setBar, [] ]
14             - [ setBar ]
15             - [ setBar, ['@=service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")'] ]
16     method_call2:
17         class: FooClass
18         calls:
19             - [ setBar, [ foo, '@foo', [true, false] ] ]
20     alias_for_foo: '@foo'
21     another_alias_for_foo:
22         alias: foo
23         public: false
24     another_third_alias_for_foo:
25         alias: foo
26     decorator_service:
27         decorates: decorated
28     decorator_service_with_name:
29         decorates: decorated
30         decoration_inner_name: decorated.pif-pouf
31     decorator_service_with_name_and_priority:
32         decorates: decorated
33         decoration_inner_name: decorated.pif-pouf
34         decoration_priority: 5
35     new_factory1: { class: FooBarClass, factory: factory}
36     new_factory2: { class: FooBarClass, factory: ['@baz', getClass]}
37     new_factory3: { class: FooBarClass, factory: [BazClass, getInstance]}