rest.services.yml 1.01 KB
Newer Older
1 2 3
services:
  plugin.manager.rest:
    class: Drupal\rest\Plugin\Type\ResourcePluginManager
4
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
5 6 7 8 9 10 11
  cache.rest:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory_method: get
    factory_service: cache_factory
    arguments: [rest]
12 13 14 15 16 17 18 19 20
  access_check.rest.csrf:
    class: Drupal\rest\Access\CSRFAccessCheck
    tags:
      - { name: access_check }
  rest.link_manager:
    class: Drupal\rest\LinkManager\LinkManager
    arguments: ['@rest.link_manager.type', '@rest.link_manager.relation']
  rest.link_manager.type:
    class: Drupal\rest\LinkManager\TypeLinkManager
21
    arguments: ['@cache.default']
22 23
  rest.link_manager.relation:
    class: Drupal\rest\LinkManager\RelationLinkManager
24
    arguments: ['@cache.default', '@entity.manager']
25 26 27 28 29
  rest.resource_routes:
    class: Drupal\rest\Routing\ResourceRoutes
    arguments: ['@plugin.manager.rest', '@config.factory']
    tags:
      - { name: 'event_subscriber' }