You are here

public function SecurityFileUploadEventSubscriber::__construct in Drupal 9

Constructs a new file event listener.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

core/modules/system/src/EventSubscriber/SecurityFileUploadEventSubscriber.php, line 30

Class

SecurityFileUploadEventSubscriber
The final subscriber to 'file.upload.sanitize.name'.

Namespace

Drupal\system\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->config = $config_factory
    ->get('system.file');
}