parameters:
  media_library.skip_procedural_hook_scan: false

services:
  _defaults:
    autoconfigure: true
  media_library.ui_builder:
    class: Drupal\media_library\MediaLibraryUiBuilder
    arguments: ['@entity_type.manager', '@request_stack', '@views.executable', '@form_builder', '@media_library.opener_resolver']
  Drupal\media_library\MediaLibraryUiBuilder: '@media_library.ui_builder'
  media_library.route_subscriber:
    class: Drupal\media_library\Routing\RouteSubscriber
  media_library.opener_resolver:
    class: Drupal\media_library\OpenerResolver
    tags:
      - { name: service_collector, tag: media_library.opener, call: addOpener }
  Drupal\media_library\OpenerResolverInterface: '@media_library.opener_resolver'
  media_library.opener.field_widget:
    class: Drupal\media_library\MediaLibraryFieldWidgetOpener
    arguments: ['@entity_type.manager']
  media_library.opener.editor:
    class: Drupal\media_library\MediaLibraryEditorOpener
    arguments: ['@entity_type.manager']
