media.services.yml 1008 B

123456789101112131415161718192021
  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']