You are here

public function RedirectMiddleware::handle in Opigno dashboard 3.x

File

src/RedirectMiddleware.php, line 45

Class

RedirectMiddleware
Executes redirect before the main kernel takes over the request.

Namespace

Drupal\opigno_dashboard

Code

public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
  $response = $this->httpKernel
    ->handle($request, $type, $catch);
  return $this->redirectResponse ?: $response;
}