rest.services.yml

Same filename in other branches
  1. 9 core/modules/rest/rest.services.yml
  2. 8.9.x core/modules/rest/rest.services.yml
  3. 10 core/modules/rest/rest.services.yml
core/modules/rest/rest.services.yml

File

core/modules/rest/rest.services.yml

View source
  1. parameters:
  2. rest.hooks_converted: true
  3. services:
  4. _defaults:
  5. autoconfigure: true
  6. plugin.manager.rest:
  7. class: Drupal\rest\Plugin\Type\ResourcePluginManager
  8. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  9. cache.rest:
  10. class: Drupal\Core\Cache\CacheBackendInterface
  11. tags:
  12. - { name: cache.bin }
  13. factory: ['@cache_factory', 'get']
  14. arguments: [rest]
  15. rest.resource_routes:
  16. class: Drupal\rest\Routing\ResourceRoutes
  17. arguments: ['@plugin.manager.rest', '@entity_type.manager', '@logger.channel.rest']
  18. logger.channel.rest:
  19. parent: logger.channel_base
  20. arguments: ['rest']
  21. # Event subscribers.
  22. rest.resource_response.subscriber:
  23. class: Drupal\rest\EventSubscriber\ResourceResponseSubscriber
  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']

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
_defaults

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