/** * @param TemplateReference $template * * @return bool */ protected function templateExists($template) { if ($this->isBackoffice() || $this->inBackofficeRoot()) { $template = '@ClasticBackofficeBundle/Exception/exception_full.html.twig'; } return parent::templateExists($template); }