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...
32
{
33
10
$this->request = $request;
34
10
$this->chain = $chain;
35
10
}
36
37
/**
38
* Set the order of the parser chain
39
*
40
* @param array $chain
41
*/
42
10
public function setChainOrder(array $chain)
43
{
44
10
$this->chain = $chain;
45
46
10
return $this;
47
}
48
49
/**
50
* Iterate throught the parsers and attempt to retrieve
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().