public function HttpDataCollector::__construct in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/HttpDataCollector.php \Drupal\webprofiler\DataCollector\HttpDataCollector::__construct()
- 8 webprofiler/src/DataCollector/HttpDataCollector.php \Drupal\webprofiler\DataCollector\HttpDataCollector::__construct()
- 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\DataCollectorCode
public function __construct(HttpClientMiddleware $middleware) {
$this->middleware = $middleware;
$this->data['completed'] = [];
$this->data['failed'] = [];
}