file.services.yml

Same filename in other branches
  1. 8.9.x core/modules/file/file.services.yml
  2. 10 core/modules/file/file.services.yml
  3. 11.x core/modules/file/file.services.yml
core/modules/file/file.services.yml

File

core/modules/file/file.services.yml

View source
  1. services:
  2. file.usage:
  3. class: Drupal\file\FileUsage\DatabaseFileUsageBackend
  4. arguments: ['@config.factory', '@database', 'file_usage']
  5. tags:
  6. - { name: backend_overridable }
  7. file.upload_handler:
  8. class: Drupal\file\Upload\FileUploadHandler
  9. arguments: [ '@file_system', '@entity_type.manager', '@stream_wrapper_manager', '@event_dispatcher', '@file.mime_type.guesser', '@current_user', '@request_stack' ]
  10. file.repository:
  11. class: Drupal\file\FileRepository
  12. arguments: [ '@file_system', '@stream_wrapper_manager', '@entity_type.manager', '@module_handler', '@file.usage', '@current_user' ]

Services

Title Deprecated Summary
file.repository Drupal\file\FileRepository
file.upload_handler Drupal\file\Upload\FileUploadHandler
file.usage Drupal\file\FileUsage\DatabaseFileUsageBackend

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.