You are here

public function HttpsWwwRedirectSubscriber::__construct in HTTPS and WWW Redirect 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/HttpsWwwRedirectSubscriber.php \Drupal\httpswww\EventSubscriber\HttpsWwwRedirectSubscriber::__construct()

HttpsWwwRedirectSubscriber constructor.

Parameters

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

\Drupal\Core\Session\AccountInterface $account: The current user.

File

src/EventSubscriber/HttpsWwwRedirectSubscriber.php, line 43

Class

HttpsWwwRedirectSubscriber
Class HttpsWwwRedirectSubscriber.

Namespace

Drupal\httpswww\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $account) {
  $this->config = $config_factory
    ->get('httpswww.settings');
  $this->account = $account;
}