You are here

public function Domain301RedirectController::__construct in Domain 301 Redirect 8

File

src/Controller/Domain301RedirectController.php, line 44

Class

Domain301RedirectController
Controller to check that the domain is working.

Namespace

Drupal\domain_301_redirect\Controller

Code

public function __construct(Domain301RedirectManagerInterface $redirectManager, RequestStack $request_stack, ConfigFactoryInterface $config_factory) {
  $this->redirectManager = $redirectManager;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->config = $config_factory
    ->get('domain_301_redirect.settings');
}