public function HstsSubscriber::__construct in HTTP Strict Transport Security 8
Constructs a FinishResponseSubscriber object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
File
- src/
HstsSubscriber.php, line 33 - Contains \Drupal\hsts\HstsSubscriber.
Class
- HstsSubscriber
- Subscribes to the kernel request event to add HAL media types.
Namespace
Drupal\hstsCode
public function __construct(ConfigFactoryInterface $config_factory) {
$this->config = $config_factory
->get('hsts.settings');
}