You are here

public function RedirectChecker::__construct in Global Redirect 8

Parameters

ConfigFactoryInterface $config:

\Drupal\Core\Access\AccessManager $access_manager: The access manager service.

\Drupal\Core\Session\AccountInterface $account: The account object.

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider service.

File

src/RedirectChecker.php, line 49
Contains Drupal\globalredirect\RedirectChecker.

Class

RedirectChecker
Redirect checker class.

Namespace

Drupal\globalredirect

Code

public function __construct(ConfigFactoryInterface $config, AccessManager $access_manager, AccountInterface $account, RouteProviderInterface $route_provider) {
  $this->config = $config
    ->get('globalredirect.settings');
  $this->accessManager = $access_manager;
  $this->account = $account;
  $this->routeProvider = $route_provider;
}