You are here

public function LdapSsoBootSubscriber::__construct in LDAP Single Sign On 8

Same name and namespace in other branches
  1. 8.4 src/LdapSsoBootSubscriber.php \Drupal\ldap_sso\LdapSsoBootSubscriber::__construct()

Fetches debugging level and logging interface.

Parameters

\Psr\Log\LoggerInterface $logger: The logging interface.

\Drupal\Core\Config\ConfigFactory $configFactory: Factory for configuration for LDAP and logging level.

\Drupal\Core\Path\CurrentPathStack $currentPath: Adds the current path.

\Drupal\ldap_servers\Logger\LdapDetailLog $detailLog: LDAP detail log.

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

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: Redirect destination.

File

src/LdapSsoBootSubscriber.php, line 58

Class

LdapSsoBootSubscriber
Provides the automated single sign-on provider.

Namespace

Drupal\ldap_sso

Code

public function __construct(LoggerInterface $logger, ConfigFactory $configFactory, CurrentPathStack $currentPath, LdapDetailLog $detailLog, AccountInterface $account, RedirectDestinationInterface $redirect_destination) {
  $this->logger = $logger;
  $this->config = $configFactory
    ->get('ldap_sso.settings');
  $this->frontpage = $configFactory
    ->get('system.site')
    ->get('frontpage');
  $this->currentPath = $currentPath;
  $this->detailLog = $detailLog;
  $this->account = $account;
  $this->redirectDestination = $redirect_destination;
}