private getCurrentRequest ( ) : |
||
Résultat |
private function getCurrentRequest()
{
$request = $this->requestStack->getCurrentRequest();
if (!$request) {
throw new \LogicException('There is no "current request", and it is needed to perform this action');
}
return $request;
}