You are here

service file.repository in Drupal 10

Class

Drupal\file\FileRepository
17 string references to file.repository
CopyTest::setUp in core/modules/file/tests/src/Kernel/CopyTest.php
editor_file_download in core/modules/editor/editor.module
Implements hook_file_download().
FileFieldWidgetTest::createTemporaryFile in core/modules/file/tests/src/Functional/FileFieldWidgetTest.php
Creates a temporary file, for a specific user.
FileItem::generateSampleValue in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Generates placeholder field values.
FileMoveTest::setUp in core/modules/image/tests/src/Functional/FileMoveTest.php

... See full list

File

core/modules/file/file.services.yml
core/modules/file/file.services.yml

View source
  1. class: Drupal\file\FileRepository
  2. arguments:
  3. - '@file_system'
  4. - '@stream_wrapper_manager'
  5. - '@entity_type.manager'
  6. - '@module_handler'
  7. - '@file.usage'
  8. - '@current_user'