You are here

public function LoginController::__construct in LDAP Single Sign On 8.4

Same name and namespace in other branches
  1. 8 src/Controller/LoginController.php \Drupal\ldap_sso\Controller\LoginController::__construct()

Constructor containing logger and watchdog level.

Parameters

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

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

\Drupal\ldap_authentication\Controller\LoginValidatorSso $validator: Controller for doing the login procedures.

\Drupal\ldap_servers\Logger\LdapDetailLog $detailLog: Logger interface for conditional logging.

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

\Drupal\Component\Datetime\TimeInterface $time: Time.

\Drupal\ldap_sso\ServerVariableLookupInterface $server_variable_lookup: Variable used on the server for identified user, often REMOTE_USER.

File

src/Controller/LoginController.php, line 99

Class

LoginController
Login controller.

Namespace

Drupal\ldap_sso\Controller

Code

public function __construct(LoggerInterface $logger, ConfigFactory $configFactory, LoginValidatorSso $validator, LdapDetailLog $detailLog, AccountInterface $account, TimeInterface $time, ServerVariableLookupInterface $server_variable_lookup) {
  $this->logger = $logger;
  $this->config = $configFactory
    ->get('ldap_sso.settings');
  $this->validator = $validator;
  $this->detailLog = $detailLog;
  $this->account = $account;
  $this->time = $time;
  $this->serverVariableLookup = $server_variable_lookup;
}