You are here

acquia_contenthub_s3.services.yml in Acquia Content Hub 8.2

modules/acquia_contenthub_s3/acquia_contenthub_s3.services.yml

File

modules/acquia_contenthub_s3/acquia_contenthub_s3.services.yml
View source
  1. services:
  2. s3_file_entity.cdf.handler:
  3. class: Drupal\acquia_contenthub_s3\EventSubscriber\Cdf\S3FileEntityHandler
  4. arguments:
  5. - '@acquia_contenthub_s3.file_mapper'
  6. tags:
  7. - { name: event_subscriber }
  8. acquia_contenthub_s3.file_storage:
  9. class: Drupal\Core\Entity\EntityStorageInterface
  10. factory: entity_type.manager:getStorage
  11. arguments: ['file']
  12. acquia_contenthub_s3.file_map:
  13. class: Drupal\acquia_contenthub_s3\S3FileMap
  14. arguments: ['@database']
  15. acquia_contenthub_s3.file_mapper:
  16. class: Drupal\acquia_contenthub_s3\S3FileMapper
  17. arguments:
  18. - '@config.factory'
  19. - '@file_system'
  20. - '@acquia_contenthub_s3.file_map'
  21. - '@stream_wrapper_manager'
  22. acquia_contenthub_s3.origin_locator:
  23. class: Drupal\acquia_contenthub_s3\S3FileOriginLocator
  24. arguments:
  25. - '@acquia_contenthub_s3.file_map'
  26. - '@acquia_contenthub_s3.file_storage'
  27. - '@acquia_contenthub_common_actions'
  28. - '@acquia_contenthub.config'
  29. acquia_contenthub_s3.s3fs_stream.decorator:
  30. class: Drupal\acquia_contenthub_s3\S3fsStreamDecorator
  31. decorates: stream_wrapper.s3fs
  32. acquia_contenthub.s3_file.dependency_collector:
  33. class: Drupal\acquia_contenthub_s3\EventSubscriber\DependencyCollector\S3StorageHandlerModuleDependencyCollector
  34. tags:
  35. - { name: event_subscriber }
  36. arguments: ['@module_handler']