You are here

public function LoginDestinationManager::__construct in Login Destination 8.2

Same name and namespace in other branches
  1. 8 src/LoginDestinationManager.php \Drupal\login_destination\LoginDestinationManager::__construct()

Constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The alias manager.

\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher.

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

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

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Utility\Token $token: The token service.

File

src/LoginDestinationManager.php, line 99

Class

LoginDestinationManager
Defines a login destination manager service.

Namespace

Drupal\login_destination

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, AliasManagerInterface $alias_manager, PathMatcherInterface $path_matcher, CurrentPathStack $current_path, ConfigFactoryInterface $config_factory, RequestStack $request_stack, LanguageManagerInterface $language_manager, Token $token) {
  $this->entityTypeManager = $entity_type_manager;
  $this->aliasManager = $alias_manager;
  $this->pathMatcher = $path_matcher;
  $this->currentPath = $current_path;
  $this->configFactory = $config_factory;
  $this->requestStack = $request_stack;
  $this->languageManager = $language_manager;
  $this->token = $token;
}