services:
  token.entity_mapper:
    class: Drupal\token\TokenEntityMapper
    arguments: ['@entity_type.manager', '@module_handler']
  token.tree_builder:
    class: Drupal\token\TreeBuilder
    arguments: ['@token', '@token.entity_mapper', '@cache.data', '@language_manager']
  token.route_subscriber:
    class: Drupal\token\Routing\RouteSubscriber
    arguments: ['@entity_type.manager']
    tags:
      - { name: event_subscriber }
  token.module_provider:
    class: Drupal\token\TokenModuleProvider
    arguments: ['@cache.default', '@lock', '@token']
    tags:
      - { name: needs_destruction }
