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...
34
{
35
$this->actionFactory = $actionFactory;
36
$this->request = $request;
37
}
38
39
/**
40
* Default action
41
*
42
* @param string $customEntityName
43
* @param string $actionType
44
*
45
* @return Response
46
* @throws NotFoundHttpException
47
*/
48
public function executeAction($customEntityName, $actionType)