file.services.yml
Same filename in other branches
File
-
core/
modules/ file/ file.services.yml
View source
- services:
- 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:
- class: Drupal\file\FileRepository
- 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.