You are here

public function FileUploadSecureValidator::__construct in File Upload Secure Validator 8

Constructs the file upload secure validation service.

Parameters

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

\Drupal\Core\StringTranslation\TranslationInterface $translator: The string translation service object.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory service object.

Return value

void

File

src/Service/FileUploadSecureValidator.php, line 50

Class

FileUploadSecureValidator
A service class for fileinfo-based validation.

Namespace

Drupal\file_upload_secure_validator\Service

Code

public function __construct(LoggerChannelFactoryInterface $logger_factory, TranslationInterface $translator, ConfigFactoryInterface $config_factory) {
  $this->loggerChannelFactory = $logger_factory;
  $this->translator = $translator;
  $this->configFactory = $config_factory;
}