You are here

public function HttpDataCollector::__construct in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/DataCollector/HttpDataCollector.php \Drupal\webprofiler\DataCollector\HttpDataCollector::__construct()
  2. 8.2 webprofiler/src/DataCollector/HttpDataCollector.php \Drupal\webprofiler\DataCollector\HttpDataCollector::__construct()
  3. 4.x webprofiler/src/DataCollector/HttpDataCollector.php \Drupal\webprofiler\DataCollector\HttpDataCollector::__construct()

Parameters

\Drupal\webprofiler\Http\HttpClientMiddleware $middleware:

File

webprofiler/src/DataCollector/HttpDataCollector.php, line 27

Class

HttpDataCollector
Collects data about http calls during request.

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(HttpClientMiddleware $middleware) {
  $this->middleware = $middleware;
  $this->data['completed'] = [];
  $this->data['failed'] = [];
}