getRequestStack()->getCurrentRequest(), "/admin")) { return $this->render('@LcSov/exception/error.html.twig', [ "code" => $exception->getCode(), "message" => $exception->getMessage() ]); } else { return $this->render('bundles/TwigBundle/Exception/error.html.twig', [ "code" => $exception->getCode(), "message" => $exception->getMessage() ]); } } }