public function LoginController::__construct in LDAP Single Sign On 8
Same name and namespace in other branches
- 8.4 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\LoginValidator $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.
File
- src/
Controller/ LoginController.php, line 55
Class
- LoginController
- Class LoginController.
Namespace
Drupal\ldap_sso\ControllerCode
public function __construct(LoggerInterface $logger, ConfigFactory $configFactory, LoginValidator $validator, LdapDetailLog $detailLog, AccountInterface $account) {
$this->logger = $logger;
$this->config = $configFactory
->get('ldap_sso.settings');
$this->validator = $validator;
$this->detailLog = $detailLog;
$this->account = $account;
}