file.services.yml
Same filename in other branches
File
-
core/
modules/ file/ file.services.yml
View source
- services:
- _defaults:
- autoconfigure: true
- file.event.subscriber:
- class: Drupal\file\EventSubscriber\FileEventSubscriber
- arguments: ['@config.factory', '@transliteration', '@language_manager']
- file.usage:
- class: Drupal\file\FileUsage\DatabaseFileUsageBackend
- arguments: ['@config.factory', '@database', 'file_usage']
- tags:
- - { name: backend_overridable }
- file.upload_handler:
- class: Drupal\file\Upload\FileUploadHandler
- 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']
- Drupal\file\Upload\FileUploadHandler: '@file.upload_handler'
- file.repository:
- class: Drupal\file\FileRepository
- arguments: [ '@file_system', '@stream_wrapper_manager', '@entity_type.manager', '@module_handler', '@file.usage', '@current_user' ]
- Drupal\file\FileRepositoryInterface: '@file.repository'
- file.recursive_validator_factory:
- class: Drupal\file\Validation\RecursiveValidatorFactory
- arguments: ['@class_resolver', '@typed_data_manager']
- Drupal\file\Validation\RecursiveValidatorFactory: '@file.recursive_validator_factory'
- file.recursive_validator:
- class: Symfony\Component\Validator\Validator\ValidatorInterface
- factory: ['@file.recursive_validator_factory', 'createValidator']
- file.validator:
- class: Drupal\file\Validation\FileValidator
- arguments: ['@file.recursive_validator', '@validation.constraint', '@event_dispatcher', '@module_handler']
- Drupal\file\Validation\FileValidatorInterface: '@file.validator'
- file.input_stream_file_writer:
- class: Drupal\file\Upload\InputStreamFileWriter
- arguments: ['@file_system']
- 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.