Overrides DataCollectorInterface::collect
public function collect(Request $request, Response $response, ?\Throwable $exception = null) : void { $this->currentRequest = $this->requestStack && $this->requestStack ->getMainRequest() !== $request ? $request : null; $this->data = []; }