public function UploadController::__construct in DropzoneJS 8
Same name and namespace in other branches
- 8.2 src/Controller/UploadController.php \Drupal\dropzonejs\Controller\UploadController::__construct()
Constructs dropzone upload controller route controller.
Parameters
\Drupal\dropzonejs\UploadHandlerInterface $upload_handler: Upload handler.
\Symfony\Component\HttpFoundation\Request $request: Request object.
File
- src/
Controller/ UploadController.php, line 42
Class
- UploadController
- Handles requests that dropzone issues when uploading files.
Namespace
Drupal\dropzonejs\ControllerCode
public function __construct(UploadHandlerInterface $upload_handler, Request $request) {
$this->uploadHandler = $upload_handler;
$this->request = $request;
}