You are here

public function SecureLoginManager::__construct in Secure Login 8

Constructs the secure login service.

File

src/SecureLoginManager.php, line 51

Class

SecureLoginManager
Defines the secure login service.

Namespace

Drupal\securelogin

Code

public function __construct(ConfigFactoryInterface $config_factory, EventDispatcherInterface $event_dispatcher, RequestStack $request_stack) {
  $this->config = $config_factory
    ->get('securelogin.settings');
  $this->eventDispatcher = $event_dispatcher;
  $this->requestStack = $request_stack;
  $this->request = $this->requestStack
    ->getCurrentRequest();
}