You are here

public function LoginDestinationManager::__construct in Login Destination 8

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

Constructor.

Parameters

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

\Drupal\Core\Path\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.

File

src/LoginDestinationManager.php, line 80

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) {
  $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;
}