function CKEditor5ImageController::__construct

Same name in other branches
  1. 10 core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php \Drupal\ckeditor5\Controller\CKEditor5ImageController::__construct()
  2. 11.x core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php \Drupal\ckeditor5\Controller\CKEditor5ImageController::__construct()

Constructs a new CKEditor5ImageController.

Parameters

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

\Drupal\Core\Session\AccountInterface $current_user: The currently authenticated user.

\Symfony\Component\Mime\MimeTypeGuesserInterface $mime_type_guesser: The MIME type guesser.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock service.

\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

File

core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php, line 88

Class

CKEditor5ImageController
Returns response for CKEditor 5 Simple image upload adapter.

Namespace

Drupal\ckeditor5\Controller

Code

public function __construct(FileSystemInterface $file_system, AccountInterface $current_user, MimeTypeGuesserInterface $mime_type_guesser, LockBackendInterface $lock, EventDispatcherInterface $event_dispatcher) {
    $this->fileSystem = $file_system;
    $this->currentUser = $current_user;
    $this->mimeTypeGuesser = $mime_type_guesser;
    $this->lock = $lock;
    $this->eventDispatcher = $event_dispatcher;
}

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