Свойство | 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 |
Méthode | Description | |
---|---|---|
__construct ( Twig_Environment $twig, boolean $debug, |
Constructor |
Méthode | 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 | |
Résultat | Symfony\Component\Templating\TemplateReferenceInterface |
protected string $defaultTemplate | ||
Résultat | string |
protected string[] $templateByCode | ||
Résultat | string[] |