Newer
Older
Alex Pott
committed
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 }
Alex Pott
committed
factory: cache_factory:get
arguments: [rest]
# @todo Remove this service in Drupal 9.0.0.
Alex Pott
committed
access_check.rest.csrf:
alias: access_check.header.csrf
Alex Bronstein
committed
# Link managers.
# @deprecated in Drupal 8.3.x and will be removed before 9.0.0. Use
# serialization.link_manager instead.
Alex Pott
committed
rest.link_manager:
Alex Bronstein
committed
parent: serialization.link_manager
Alex Pott
committed
class: Drupal\rest\LinkManager\LinkManager
Alex Bronstein
committed
# @deprecated in Drupal 8.3.x and will be removed before 9.0.0. Use
# serialization.link_manager.type instead.
Alex Pott
committed
rest.link_manager.type:
Alex Bronstein
committed
parent: serialization.link_manager.type
Alex Pott
committed
class: Drupal\rest\LinkManager\TypeLinkManager
Alex Bronstein
committed
# @deprecated in Drupal 8.3.x and will be removed before 9.0.0. Use
# serialization.link_manager.relation instead.
Alex Pott
committed
rest.link_manager.relation:
Alex Bronstein
committed
parent: serialization.link_manager.relation
Alex Pott
committed
class: Drupal\rest\LinkManager\RelationLinkManager
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']