rest.services.yml

Same filename and directory in other branches
  1. 11.x core/modules/rest/rest.services.yml
  2. 10 core/modules/rest/rest.services.yml
  3. 9 core/modules/rest/rest.services.yml
  4. 8.9.x 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.skip_procedural_hook_scan: true
  3. services:
  4. _defaults:
  5. autoconfigure: true
  6. autowire: true
  7. plugin.manager.rest:
  8. class: Drupal\rest\Plugin\Type\ResourcePluginManager
  9. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  10. cache.rest:
  11. class: Drupal\Core\Cache\CacheBackendInterface
  12. tags:
  13. - { name: cache.bin }
  14. factory: ['@cache_factory', 'get']
  15. arguments: [rest]
  16. rest.resource_routes:
  17. class: Drupal\rest\Routing\ResourceRoutes
  18. arguments: ['@plugin.manager.rest', '@entity_type.manager', '@logger.channel.rest']
  19. logger.channel.rest:
  20. parent: logger.channel_base
  21. arguments: ['rest']
  22. # Event subscribers.
  23. rest.resource_response.subscriber:
  24. class: Drupal\rest\EventSubscriber\ResourceResponseSubscriber
  25. arguments: ['@serializer', '@renderer', '@current_route_match']
  26. rest.resource.entity.post_route.subscriber:
  27. class: \Drupal\rest\EventSubscriber\EntityResourcePostRouteSubscriber

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.