services:
  menu_item_extras.menu_link_tree_handler:
    class: Drupal\menu_item_extras\Service\MenuLinkTreeHandler
    arguments:
      - '@entity_type.manager'
      - '@entity.repository'
  menu_item_extras.menu_link_content_helper:
    class: Drupal\menu_item_extras\Service\MenuLinkContentService
    arguments:
      - '@entity_type.manager'
      - '@entity.definition_update_manager'
      - '@entity_field.manager'
      - '@field_storage_definition.listener'
      - '@entity.last_installed_schema.repository'
      - '@database'
  menu_item_extras.update:
    class: Drupal\menu_item_extras\Service\UpdateHelper
  menu_item_extras.route_subscriber:
    class: Drupal\menu_item_extras\Routing\RouteSubscriber
    arguments:
      - '@entity_type.manager'
    deprecated: The "%service_id%" service is deprecated in menu_item_extras:2.11 and is removed from menu_item_extras:3.0.0
    tags:
      - { name: event_subscriber }
  menu_item_extras.uninstall_validator:
    class: Drupal\menu_item_extras\MenuItemExtrasUninstallValidator
    tags:
      - { name: module_install.uninstall_validator }
    arguments:
      - '@database'
      - '@string_translation'
    lazy: true
  menu_item_extras.utility:
    class: Drupal\menu_item_extras\Utility\Utility
  cache_context.menu_item_extras_link_item_content_active_trails:
    class: Drupal\menu_item_extras\Cache\LinkItemContentActiveTrailsCacheContext
    calls:
      - [setContainer, ['@service_container']]
    tags:
      - { name: cache.context }
  menu_item_extras.config_subscriber:
    class: Drupal\menu_item_extras\EventSubscriber\ConfigSubscriber
    arguments:
      - '@config.installer'
    tags:
      - { name: event_subscriber }
