You are here

public function WebprofilerMiddleware::handle in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/StackMiddleware/WebprofilerMiddleware.php \Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware::handle()
  2. 8.2 webprofiler/src/StackMiddleware/WebprofilerMiddleware.php \Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware::handle()
  3. 4.x webprofiler/src/StackMiddleware/WebprofilerMiddleware.php \Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware::handle()

File

webprofiler/src/StackMiddleware/WebprofilerMiddleware.php, line 34

Class

WebprofilerMiddleware
Class WebprofilerMiddleware

Namespace

Drupal\webprofiler\StackMiddleware

Code

public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
  foreach (Database::getAllConnectionInfo() as $key => $info) {
    Database::startLog('webprofiler', $key);
  }
  return $this->httpKernel
    ->handle($request, $type, $catch);
}