You are here

public function S3CorsUploadAjaxController::__construct in Flysystem - S3 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/S3CorsUploadAjaxController.php \Drupal\flysystem_s3\Controller\S3CorsUploadAjaxController::__construct()

Constructs an S3CorsUploadAjaxController object.

Parameters

\Drupal\flysystem\FlysystemFactory $flysystem_factory: The Flysystem factory.

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

File

src/Controller/S3CorsUploadAjaxController.php, line 52

Class

S3CorsUploadAjaxController
Defines a controller to respond to S3 CORS upload AJAX requests.

Namespace

Drupal\flysystem_s3\Controller

Code

public function __construct(FlysystemFactory $flysystem_factory, FileSystemInterface $file_system) {
  $this->flysystemFactory = $flysystem_factory;
  $this->fileSystem = $file_system;
}