Property | Type | Description | |
---|---|---|---|
$defaultTemplate | string | Template by default | |
$fallbackCode | integer | null | Status code for non http-exceptions, or null for no fallback | |
$templateByCode | string[] | Template path by status code for rendering | |
$templateLocator | Template locator |
Method | Description | |
---|---|---|
__construct ( Twig_Environment $twig, boolean $debug, |
Constructor |
Method | Description | |
---|---|---|
findTemplate ( |
Return the template for rendering a status code | |
supports ( |
Checks if we can process the current event |
public __construct ( Twig_Environment $twig, boolean $debug, |
||
$twig | Twig_Environment | Template engine |
$debug | boolean | Show error (false) or exception (true) pages by default |
$templateLocator | Where to search for templates | |
$defaultTemplate | string | Default template |
$templateByCode | array | Template by status code |
$fallbackCode | integer | null | Status code for fallback exceptions |
protected findTemplate ( |
||
$request | ||
$format | string | |
$code | integer | Status code to locate a template |
$showException | boolean | |
return | Symfony\Component\Templating\TemplateReferenceInterface |
protected string $defaultTemplate | ||
return | string |
protected string[] $templateByCode | ||
return | string[] |