You are here

rest.services.yml in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/rest/rest.services.yml
core/modules/rest/rest.services.yml

File

core/modules/rest/rest.services.yml
View source
  1. services:
  2. plugin.manager.rest:
  3. class: Drupal\rest\Plugin\Type\ResourcePluginManager
  4. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  5. cache.rest:
  6. class: Drupal\Core\Cache\CacheBackendInterface
  7. tags:
  8. - { name: cache.bin }
  9. factory: ['@cache_factory', 'get']
  10. arguments: [rest]
  11. rest.resource_routes:
  12. class: Drupal\rest\Routing\ResourceRoutes
  13. arguments: ['@plugin.manager.rest', '@entity_type.manager', '@logger.channel.rest']
  14. tags:
  15. - { name: 'event_subscriber' }
  16. logger.channel.rest:
  17. parent: logger.channel_base
  18. arguments: ['rest']
  19. # Event subscribers.
  20. rest.resource_response.subscriber:
  21. class: Drupal\rest\EventSubscriber\ResourceResponseSubscriber
  22. tags:
  23. - { name: event_subscriber }
  24. arguments: ['@serializer', '@renderer', '@current_route_match']
  25. rest.resource.entity.post_route.subscriber:
  26. class: \Drupal\rest\EventSubscriber\EntityResourcePostRouteSubscriber
  27. arguments: ['@entity_type.manager']
  28. tags:
  29. - { name: event_subscriber }