You have injected the Request via parameter $request. This is generally not recommended as there might be multiple instances during a request cycle (f.e. when using sub-requests). Instead, it is recommended to inject the RequestStack and retrieve the current request each time you need it via getCurrentRequest().
Loading history...
20
{
21
$this->request = $request;
22
}
23
24
/**
25
* @codeCoverageIgnore
26
*
27
* @param Response $response
28
* @return self
29
*/
30
public function setResponse(Response $response) : AnalyzeEvent