You are here

public function ExceptionDataCollector::collect in Zircon Profile 8

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

Collects data for the given Request and Response.

Parameters

Request $request A Request instance:

Response $response A Response instance:

\Exception $exception An Exception instance:

Overrides DataCollectorInterface::collect

File

vendor/symfony/http-kernel/DataCollector/ExceptionDataCollector.php, line 28

Class

ExceptionDataCollector
ExceptionDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function collect(Request $request, Response $response, \Exception $exception = null) {
  if (null !== $exception) {
    $this->data = array(
      'exception' => FlattenException::create($exception),
    );
  }
}