You are here

public function UploadController::__construct in Plupload integration 2.0.x

Same name and namespace in other branches
  1. 8 src/UploadController.php \Drupal\plupload\UploadController::__construct()

Constructs plupload upload controller route controller.

Parameters

\Symfony\Component\HttpFoundation\Request $request: Request object.

File

src/UploadController.php, line 63

Class

UploadController
Plupload upload handling route.

Namespace

Drupal\plupload

Code

public function __construct(Request $request) {
  $this->request = $request;
  $this->temporaryUploadLocation = \Drupal::config('plupload.settings')
    ->get('temporary_uri');
  $this->htaccessWriter = \Drupal::service('file.htaccess_writer');
  $this->fileSystem = \Drupal::service('file_system');
}