rest.services.yml
Same filename in other branches
File
-
core/
modules/ rest/ rest.services.yml
View source
- services:
- plugin.manager.rest:
- class: Drupal\rest\Plugin\Type\ResourcePluginManager
- arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
- cache.rest:
- class: Drupal\Core\Cache\CacheBackendInterface
- tags:
- - { name: cache.bin }
- factory: cache_factory:get
- arguments: [rest]
- # @todo Remove this service in Drupal 9.0.0.
- access_check.rest.csrf:
- alias: access_check.header.csrf
- rest.resource_routes:
- class: Drupal\rest\Routing\ResourceRoutes
- arguments: ['@plugin.manager.rest', '@entity_type.manager', '@logger.channel.rest']
- tags:
- - { name: 'event_subscriber' }
- logger.channel.rest:
- parent: logger.channel_base
- arguments: ['rest']
-
- # Event subscribers.
- rest.resource_response.subscriber:
- class: Drupal\rest\EventSubscriber\ResourceResponseSubscriber
- tags:
- - { name: event_subscriber }
- arguments: ['@serializer', '@renderer', '@current_route_match']
- rest.config_subscriber:
- class: Drupal\rest\EventSubscriber\RestConfigSubscriber
- arguments: ['@router.builder']
- tags:
- - { name: event_subscriber }
- rest.resource.entity.post_route.subscriber:
- class: \Drupal\rest\EventSubscriber\EntityResourcePostRouteSubscriber
- arguments: ['@entity_type.manager']
- tags:
- - { name: event_subscriber }
-
- # @todo Remove in Drupal 9.0.0.
- rest.path_processor_entity_resource_bc:
- class: \Drupal\rest\PathProcessor\PathProcessorEntityResourceBC
- arguments: ['@entity_type.manager']
- tags:
- - { name: path_processor_inbound }
- rest.route_processor_get_bc:
- class: \Drupal\rest\RouteProcessor\RestResourceGetRouteProcessorBC
- arguments: ['%serializer.formats%', '@router.route_provider']
- tags:
- - { name: route_processor_outbound }
Services
Title | Deprecated | Summary |
---|---|---|
access_check.rest.csrf | Alias of access_check.header.csrf | |
cache.rest | Drupal\Core\Cache\CacheBackendInterface | |
logger.channel.rest | ||
plugin.manager.rest | Drupal\rest\Plugin\Type\ResourcePluginManager | |
rest.config_subscriber | Drupal\rest\EventSubscriber\RestConfigSubscriber | |
rest.path_processor_entity_resource_bc | \Drupal\rest\PathProcessor\PathProcessorEntityResourceBC | |
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 | |
rest.route_processor_get_bc | \Drupal\rest\RouteProcessor\RestResourceGetRouteProcessorBC |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.