class WebprofilerMiddleware in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/StackMiddleware/WebprofilerMiddleware.php \Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware
- 8 webprofiler/src/StackMiddleware/WebprofilerMiddleware.php \Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware
- 8.2 webprofiler/src/StackMiddleware/WebprofilerMiddleware.php \Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware
Class WebprofilerMiddleware.
Hierarchy
- class \Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware implements \Symfony\Component\HttpKernel\HttpKernelInterface
Expanded class hierarchy of WebprofilerMiddleware
1 string reference to 'WebprofilerMiddleware'
- webprofiler.services.yml in webprofiler/
webprofiler.services.yml - webprofiler/webprofiler.services.yml
1 service uses WebprofilerMiddleware
File
- webprofiler/
src/ StackMiddleware/ WebprofilerMiddleware.php, line 12
Namespace
Drupal\webprofiler\StackMiddlewareView source
class WebprofilerMiddleware implements HttpKernelInterface {
/**
* The decorated kernel.
*
* @var \Symfony\Component\HttpKernel\HttpKernelInterface
*/
protected $httpKernel;
/**
* Constructs a WebprofilerMiddleware object.
*
* @param \Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel
* The decorated kernel.
*/
public function __construct(HttpKernelInterface $http_kernel) {
$this->httpKernel = $http_kernel;
}
/**
* {@inheritdoc}
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebprofilerMiddleware:: |
protected | property | The decorated kernel. | |
WebprofilerMiddleware:: |
public | function | ||
WebprofilerMiddleware:: |
public | function | Constructs a WebprofilerMiddleware object. |