function AuthenticationSubscriber::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php \Drupal\Core\EventSubscriber\AuthenticationSubscriber::__construct()
- 10 core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php \Drupal\Core\EventSubscriber\AuthenticationSubscriber::__construct()
- 9 core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php \Drupal\Core\EventSubscriber\AuthenticationSubscriber::__construct()
- 8.9.x core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php \Drupal\Core\EventSubscriber\AuthenticationSubscriber::__construct()
Constructs an authentication subscriber.
Parameters
\Drupal\Core\Authentication\AuthenticationProviderInterface $authenticationProvider: An authentication provider.
\Drupal\Core\Session\AccountProxyInterface $accountProxy: Account proxy.
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ AuthenticationSubscriber.php, line 44
Class
- AuthenticationSubscriber
- Authentication subscriber.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(protected AuthenticationProviderInterface $authenticationProvider, protected AccountProxyInterface $accountProxy) {
$this->filter = $this->authenticationProvider instanceof AuthenticationProviderFilterInterface ? $this->authenticationProvider : NULL;
$this->challengeProvider = $this->authenticationProvider instanceof AuthenticationProviderChallengeInterface ? $this->authenticationProvider : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.