services_defaults_test.services.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/services_defaults_test/services_defaults_test.services.yml
  2. 10 core/modules/system/tests/modules/services_defaults_test/services_defaults_test.services.yml
core/modules/system/tests/modules/services_defaults_test/services_defaults_test.services.yml

File

core/modules/system/tests/modules/services_defaults_test/services_defaults_test.services.yml

View source
  1. services:
  2. _defaults:
  3. autowire: true
  4. public: false
  5. tags:
  6. - 'foo.tag1'
  7. - { name: bar.tag2, test: 123 }
  8. - { name: bar.tag3, value: null }
  9. # Use an alias so the interface autowiring is tested.
  10. Drupal\services_defaults_test\TestInjectionInterface: '@Drupal\services_defaults_test\TestInjection'
  11. # A service that implements TestInjectionInterface.
  12. Drupal\services_defaults_test\TestInjection:
  13. public: true
  14. Drupal\services_defaults_test\TestInjection2:
  15. public: true
  16. tags:
  17. - 'zee.bang'
  18. - { name: bar.tag2, test: 321 }
  19. Drupal\services_defaults_test\TestService:
  20. public: true
  21. Drupal\services_defaults_test\TestPrivateService: ~
  22. 'services_default_test.no_autowire':
  23. class: 'Drupal\services_defaults_test\TestService'
  24. autowire: false
  25. arguments: ['@services_default_test.no_autowire.arg', '@Drupal\services_defaults_test\TestInjection2']
  26. public: true
  27. 'services_default_test.no_autowire.arg':
  28. class: 'Drupal\services_defaults_test\TestInjection'
  29. public: true

Services


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.