You are here

public function SecureLoginResponseSubscriber::__construct in Secure Login 8

Constructs a new SecureLoginResponseSubscriber.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Path\CurrentPathStack $current_path: The current path.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

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

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

File

src/SecureLoginResponseSubscriber.php, line 68

Class

SecureLoginResponseSubscriber
Listens for login to the 403 page and redirects to destination.

Namespace

Drupal\securelogin

Code

public function __construct(ConfigFactoryInterface $config_factory, CurrentPathStack $current_path, RouteMatchInterface $route_match, AccountInterface $current_user, RedirectDestinationInterface $redirect_destination) {
  $this->configFactory = $config_factory;
  $this->currentPath = $current_path;
  $this->routeMatch = $route_match;
  $this->currentUser = $current_user;
  $this->redirectDestination = $redirect_destination;
}