public function UploadHandler::__construct in DropzoneJS 8
Same name and namespace in other branches
- 8.2 src/UploadHandler.php \Drupal\dropzonejs\UploadHandler::__construct()
Constructs dropzone upload controller route controller.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.
\Drupal\Component\Transliteration\TransliterationInterface $transliteration: Transliteration service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: LanguageManager service.
File
- src/
UploadHandler.php, line 66
Class
- UploadHandler
- Handles files uploaded by Dropzone.
Namespace
Drupal\dropzonejsCode
public function __construct(RequestStack $request_stack, ConfigFactoryInterface $config_factory, TransliterationInterface $transliteration, LanguageManagerInterface $language_manager) {
$this->request = $request_stack
->getCurrentRequest();
$this->transliteration = $transliteration;
$this->languageManager = $language_manager;
$this->tmpUploadScheme = $config_factory
->get('dropzonejs.settings')
->get('tmp_upload_scheme');
}