public function TimeDataCollector::setEvents

Sets the request events.

Parameters

array $events The request events:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php, line 49

Class

TimeDataCollector
TimeDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

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