Overrides DataCollectorInterface::collect
public function collect(Request $request, Response $response, ?\Throwable $exception = null) : void { if (null !== $exception) { $this->data = [ 'exception' => FlattenException::createWithDataRepresentation($exception), ]; } }