You are here

autowire_test.services.yml in Drupal 10

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

File

core/modules/system/tests/modules/autowire_test/autowire_test.services.yml
View source
  1. services:
  2. # Multiple services that implements TestInjectionInterface.
  3. # These are marked private, because they are only intended to be used as
  4. # dependencies injected into other services.
  5. Drupal\autowire_test\TestInjection:
  6. public: false
  7. Drupal\autowire_test\TestInjection2:
  8. public: false
  9. # An alias that specifies which service to use by default for arguments that
  10. # type-hint to the interface.
  11. # This is marked private, because it is only intended to be used as a
  12. # dependency injected into other services.
  13. Drupal\autowire_test\TestInjectionInterface:
  14. alias: 'Drupal\autowire_test\TestInjection'
  15. public: false
  16. # A service that tests autowiring for two constructor arguments:
  17. # - One type-hinted to TestInjectionInterface.
  18. # - One type-hinted to TestInjection2.
  19. Drupal\autowire_test\TestService:
  20. autowire: true