function HtaccessWriter::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/File/HtaccessWriter.php \Drupal\Core\File\HtaccessWriter::__construct()
  2. 10 core/lib/Drupal/Core/File/HtaccessWriter.php \Drupal\Core\File\HtaccessWriter::__construct()
  3. 9 core/lib/Drupal/Core/File/HtaccessWriter.php \Drupal\Core\File\HtaccessWriter::__construct()
  4. 8.9.x core/lib/Drupal/Core/File/HtaccessWriter.php \Drupal\Core\File\HtaccessWriter::__construct()

Htaccess constructor.

Parameters

\Psr\Log\LoggerInterface $logger: The logger.

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

\Drupal\Core\Site\Settings $settings: The settings.

File

core/lib/Drupal/Core/File/HtaccessWriter.php, line 27

Class

HtaccessWriter
Provides functions to manage Apache .htaccess files.

Namespace

Drupal\Core\File

Code

public function __construct(protected LoggerInterface $logger, protected StreamWrapperManagerInterface $streamWrapperManager, protected Settings $settings) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.