You are here

public function TimeDataCollector::setEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php \Symfony\Component\HttpKernel\DataCollector\TimeDataCollector::setEvents()

Sets the request events.

Parameters

array $events The request events:

1 call to TimeDataCollector::setEvents()
TimeDataCollector::lateCollect in vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php
Collects data as late as possible.

File

vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php, line 68

Class

TimeDataCollector
TimeDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function setEvents(array $events) {
  foreach ($events as $event) {
    $event
      ->ensureStopped();
  }
  $this->data['events'] = $events;
}