You are here

public function AccessDeniedSubscriber::__construct in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 src/EventSubscriber/AccessDeniedSubscriber.php \Drupal\samlauth\EventSubscriber\AccessDeniedSubscriber::__construct()
  2. 8.2 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 45

Class

AccessDeniedSubscriber
Exception subscriber intercepting various "access denied" situations.

Namespace

Drupal\samlauth\EventSubscriber

Code

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