You are here

public function DropzoneJsUploadSave::__construct in DropzoneJS 8.2

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

Construct the DropzoneUploadSave object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.

\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mimetype_guesser: The mime type guesser service.

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

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory service.

\Drupal\Core\Utility\Token $token: The token service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

File

src/DropzoneJsUploadSave.php, line 114

Class

DropzoneJsUploadSave
A service that saves files uploaded by the dropzonejs element as files.

Namespace

Drupal\dropzonejs

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, MimeTypeGuesserInterface $mimetype_guesser, FileSystemInterface $file_system, LoggerChannelFactoryInterface $logger_factory, RendererInterface $renderer, ConfigFactoryInterface $config_factory, Token $token, MessengerInterface $messenger, StreamWrapperManagerInterface $stream_wrapper_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->mimeTypeGuesser = $mimetype_guesser;
  $this->fileSystem = $file_system;
  $this->logger = $logger_factory
    ->get('dropzonejs');
  $this->renderer = $renderer;
  $this->configFactory = $config_factory;
  $this->token = $token;
  $this->messenger = $messenger;
  $this->streamWrapperManager = $stream_wrapper_manager;
}