media.services.yml 1.2 KB

1234567891011121314151617181920212223242526
  1. services:
  2. plugin.manager.media.source:
  3. class: Drupal\media\MediaSourceManager
  4. parent: default_plugin_manager
  5. access_check.media.revision:
  6. class: Drupal\media\Access\MediaRevisionAccessCheck
  7. arguments: ['@entity_type.manager']
  8. tags:
  9. - { name: access_check, applies_to: _access_media_revision }
  10. media.oembed.url_resolver:
  11. class: Drupal\media\OEmbed\UrlResolver
  12. arguments: ['@media.oembed.provider_repository', '@media.oembed.resource_fetcher', '@http_client', '@module_handler', '@cache.default']
  13. media.oembed.provider_repository:
  14. class: Drupal\media\OEmbed\ProviderRepository
  15. arguments: ['@http_client', '@config.factory', '@datetime.time', '@cache.default']
  16. media.oembed.resource_fetcher:
  17. class: Drupal\media\OEmbed\ResourceFetcher
  18. arguments: ['@http_client', '@media.oembed.provider_repository', '@cache.default']
  19. media.oembed.iframe_url_helper:
  20. class: Drupal\media\IFrameUrlHelper
  21. arguments: ['@router.request_context', '@private_key']
  22. media.config_subscriber:
  23. class: Drupal\media\EventSubscriber\MediaConfigSubscriber
  24. arguments: ['@router.builder', '@cache_tags.invalidator', '@entity_type.manager']
  25. tags:
  26. - { name: event_subscriber }