protected findTemplate ( |
||
$request | ||
$format | string | |
$code | integer | Status code to locate a template |
$showException | boolean | |
return | Symfony\Component\Templating\TemplateReferenceInterface |
protected function findTemplate(Request $request, $format, $code, $showException)
{
if (!$this->supports($request)) {
return parent::findTemplate($request, $format, $code, $showException);
}
return $this->templateLocator->locate(isset($this->templateByCode[$code]) ? $this->templateByCode[$code] : $this->defaultTemplate);
}