You are here

public function RedirectSubscriber::__construct in Open Social 8.6

Same name in this branch
  1. 8.6 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
  2. 8.6 modules/social_features/social_user/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_user\EventSubscriber\RedirectSubscriber::__construct()
  3. 8.6 modules/social_features/social_group/modules/social_group_quickjoin/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_group_quickjoin\EventSubscriber\RedirectSubscriber::__construct()
  4. 8.6 modules/social_features/social_group/modules/social_group_default_route/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_group_default_route\EventSubscriber\RedirectSubscriber::__construct()
Same name and namespace in other branches
  1. 8.9 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
  2. 8.7 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
  3. 8.8 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
  4. 10.3.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
  5. 10.0.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
  6. 10.1.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
  7. 10.2.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()

Redirectsubscriber construct.

Parameters

\Drupal\Core\Routing\CurrentRouteMatch $route_match: The current route.

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

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

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

File

modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php, line 66

Class

RedirectSubscriber
Class RedirectSubscriber.

Namespace

Drupal\social_search\EventSubscriber

Code

public function __construct(CurrentRouteMatch $route_match, AccountProxy $current_user, ConfigFactoryInterface $config_factory, RequestStack $request_stack) {
  $this->currentRoute = $route_match;
  $this->currentUser = $current_user;
  $this->configFactory = $config_factory;
  $this->requestStack = $request_stack;
}