You are here

legacy-services9.yml in Service Container 7

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/legacy-services9.yml

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/legacy-services9.yml
View source
  1. parameters:
  2. baz_class: BazClass
  3. foo: bar
  4. services:
  5. foo:
  6. class: Bar\FooClass
  7. tags:
  8. - { name: foo, foo: foo }
  9. - { name: foo, bar: bar }
  10. factory_class: Bar\FooClass
  11. factory_method: getInstance
  12. arguments: [foo, '@foo.baz', { '%foo%': 'foo is %foo%', foobar: '%foo%' }, true, '@service_container']
  13. properties: { foo: bar, moo: '@foo.baz', qux: { '%foo%': 'foo is %foo%', foobar: '%foo%' } }
  14. calls:
  15. - [setBar, ['@bar']]
  16. - [initialize, { }]
  17. configurator: sc_configure
  18. foo.baz:
  19. class: %baz_class%
  20. factory_class: %baz_class%
  21. factory_method: getInstance
  22. configurator: ['%baz_class%', configureStatic1]
  23. factory_service:
  24. class: Bar
  25. factory_method: getInstance
  26. factory_service: foo.baz