public function UploadHandler::__construct in DropzoneJS 8.2
Same name and namespace in other branches
- 8 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 65
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->dropzoneSettings = $config_factory
->get('dropzonejs.settings');
}