function FileUploadHandler::__construct

Same name and namespace in other branches
  1. 10 core/modules/file/src/Upload/FileUploadHandler.php \Drupal\file\Upload\FileUploadHandler::__construct()
  2. 11.x core/modules/file/src/Upload/FileUploadHandler.php \Drupal\file\Upload\FileUploadHandler::__construct()
  3. 9 core/modules/file/src/Upload/FileUploadHandler.php \Drupal\file\Upload\FileUploadHandler::__construct()

File

core/modules/file/src/Upload/FileUploadHandler.php, line 36

Class

FileUploadHandler
Handles validating and creating file entities from file uploads.

Namespace

Drupal\file\Upload

Code

public function __construct(protected FileSystemInterface $fileSystem, protected EntityTypeManagerInterface $entityTypeManager, protected StreamWrapperManagerInterface $streamWrapperManager, protected EventDispatcherInterface $eventDispatcher, #[Autowire(service: 'file.mime_type.guesser')] protected MimeTypeGuesserInterface $mimeTypeGuesser, protected AccountInterface $currentUser, protected RequestStack $requestStack, protected FileRepositoryInterface $fileRepository, protected FileValidatorInterface $fileValidator, #[Autowire(service: 'lock')] protected LockBackendInterface $lock, protected BasicRecursiveValidatorFactory $validatorFactory) {
}

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