You are here

public function AccessDeniedSubscriber::__construct in SAML Authentication 8.2

Same name and namespace in other branches
  1. 8.3 src/EventSubscriber/AccessDeniedSubscriber.php \Drupal\samlauth\EventSubscriber\AccessDeniedSubscriber::__construct()
  2. 4.x src/EventSubscriber/AccessDeniedSubscriber.php \Drupal\samlauth\EventSubscriber\AccessDeniedSubscriber::__construct()

Constructs a new redirect subscriber.

Parameters

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

File

src/EventSubscriber/AccessDeniedSubscriber.php, line 32

Class

AccessDeniedSubscriber
Redirects logged-in users when access is denied to /saml/login.

Namespace

Drupal\samlauth\EventSubscriber

Code

public function __construct(AccountInterface $account) {
  $this->account = $account;
}