rest.services.yml

Same filename in other branches
  1. 8.9.x core/modules/rest/rest.services.yml
  2. 10 core/modules/rest/rest.services.yml
  3. 11.x 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 }

Services

Title Deprecated Summary
cache.rest Drupal\Core\Cache\CacheBackendInterface
logger.channel.rest
plugin.manager.rest Drupal\rest\Plugin\Type\ResourcePluginManager
rest.resource.entity.post_route.subscriber \Drupal\rest\EventSubscriber\EntityResourcePostRouteSubscriber
rest.resource_response.subscriber Drupal\rest\EventSubscriber\ResourceResponseSubscriber
rest.resource_routes Drupal\rest\Routing\ResourceRoutes

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