services_defaults_test.services.yml
Same filename in other branches
File
-
core/
modules/ system/ tests/ modules/ services_defaults_test/ services_defaults_test.services.yml
View source
- services:
- _defaults:
- autowire: true
- public: false
- tags:
- - 'foo.tag1'
- - { name: bar.tag2, test: 123 }
- - { name: bar.tag3, value: null }
- # Use an alias so the interface autowiring is tested.
- Drupal\services_defaults_test\TestInjectionInterface: '@Drupal\services_defaults_test\TestInjection'
- # A service that implements TestInjectionInterface.
- Drupal\services_defaults_test\TestInjection:
- public: true
- Drupal\services_defaults_test\TestInjection2:
- public: true
- tags:
- - 'zee.bang'
- - { name: bar.tag2, test: 321 }
- Drupal\services_defaults_test\TestService:
- public: true
- Drupal\services_defaults_test\TestPrivateService: ~
- 'services_default_test.no_autowire':
- class: 'Drupal\services_defaults_test\TestService'
- autowire: false
- arguments: ['@services_default_test.no_autowire.arg', '@Drupal\services_defaults_test\TestInjection2']
- public: true
- 'services_default_test.no_autowire.arg':
- class: 'Drupal\services_defaults_test\TestInjection'
- public: true
Services
Title | Deprecated | Summary |
---|---|---|
Drupal\services_defaults_test\TestInjection | ||
Drupal\services_defaults_test\TestInjection2 | ||
Drupal\services_defaults_test\TestInjectionInterface | ||
Drupal\services_defaults_test\TestPrivateService | ||
Drupal\services_defaults_test\TestService | ||
services_default_test.no_autowire | Drupal\services_defaults_test\TestService | |
services_default_test.no_autowire.arg | Drupal\services_defaults_test\TestInjection | |
_defaults |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.