file.services.yml

Same filename in other branches
  1. 9 core/modules/file/file.services.yml
  2. 8.9.x 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. _defaults:
  3. autoconfigure: true
  4. file.event.subscriber:
  5. class: Drupal\file\EventSubscriber\FileEventSubscriber
  6. arguments: ['@config.factory', '@transliteration', '@language_manager']
  7. file.usage:
  8. class: Drupal\file\FileUsage\DatabaseFileUsageBackend
  9. arguments: ['@config.factory', '@database', 'file_usage']
  10. tags:
  11. - { name: backend_overridable }
  12. file.upload_handler:
  13. class: Drupal\file\Upload\FileUploadHandler
  14. arguments: ['@file_system', '@entity_type.manager', '@stream_wrapper_manager', '@event_dispatcher', '@file.mime_type.guesser', '@current_user', '@request_stack', '@file.repository', '@file.validator', '@lock', '@validation.basic_recursive_validator_factory']
  15. Drupal\file\Upload\FileUploadHandler: '@file.upload_handler'
  16. file.repository:
  17. class: Drupal\file\FileRepository
  18. arguments: [ '@file_system', '@stream_wrapper_manager', '@entity_type.manager', '@module_handler', '@file.usage', '@current_user' ]
  19. Drupal\file\FileRepositoryInterface: '@file.repository'
  20. file.recursive_validator_factory:
  21. class: Drupal\file\Validation\RecursiveValidatorFactory
  22. arguments: ['@class_resolver', '@typed_data_manager']
  23. Drupal\file\Validation\RecursiveValidatorFactory: '@file.recursive_validator_factory'
  24. file.recursive_validator:
  25. class: Symfony\Component\Validator\Validator\ValidatorInterface
  26. factory: ['@file.recursive_validator_factory', 'createValidator']
  27. file.validator:
  28. class: Drupal\file\Validation\FileValidator
  29. arguments: ['@file.recursive_validator', '@validation.constraint', '@event_dispatcher', '@module_handler']
  30. Drupal\file\Validation\FileValidatorInterface: '@file.validator'
  31. file.input_stream_file_writer:
  32. class: Drupal\file\Upload\InputStreamFileWriter
  33. arguments: ['@file_system']
  34. Drupal\file\Upload\InputStreamFileWriterInterface: '@file.input_stream_file_writer'

Services

Title Deprecated Summary
Drupal\file\FileRepositoryInterface
Drupal\file\Upload\FileUploadHandler
Drupal\file\Upload\InputStreamFileWriterInterface
Drupal\file\Validation\FileValidatorInterface
Drupal\file\Validation\RecursiveValidatorFactory
file.event.subscriber Drupal\file\EventSubscriber\FileEventSubscriber
file.input_stream_file_writer Drupal\file\Upload\InputStreamFileWriter
file.recursive_validator Symfony\Component\Validator\Validator\ValidatorInterface
file.recursive_validator_factory Drupal\file\Validation\RecursiveValidatorFactory
file.repository Drupal\file\FileRepository
file.upload_handler Drupal\file\Upload\FileUploadHandler
file.usage Drupal\file\FileUsage\DatabaseFileUsageBackend
file.validator Drupal\file\Validation\FileValidator
_defaults

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