private function setExceptionRendererVars(Request $request)
    {
        $this->exceptionRenderer->setRequest($request);

        if ($this->container->hasBinding(ICompiler::class)) {
            $this->exceptionRenderer->setViewCompiler($this->container->resolve(ICompiler::class));
        }

        if ($this->container->hasBinding(IViewFactory::class)) {
            $this->exceptionRenderer->setViewFactory($this->container->resolve(IViewFactory::class));
        }
    }