public function EventDataCollector::collect

Collects data for the given Request and Response.

@api

Parameters

Request $request A Request instance:

Response $response A Response instance:

\Exception $exception An Exception instance:

Overrides DataCollectorInterface::collect

File

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

Class

EventDataCollector
EventDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function collect(Request $request, Response $response, \Exception $exception = null) {
  $this->data = array(
    'called_listeners' => null !== $this->dispatcher ? $this->dispatcher
      ->getCalledListeners() : array(),
    'not_called_listeners' => null !== $this->dispatcher ? $this->dispatcher
      ->getNotCalledListeners() : array(),
  );
}