PHP Class Elcodi\Store\CoreBundle\Controller\ExceptionController

Inheritance: extends Symfony\Bundle\TwigBundle\Controller\ExceptionController
Afficher le fichier Open project: elcodi/bamboo

Protected Properties

Свойство 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 Elcodi\Store\CoreBundle\Services\TemplateLocator Template locator

Méthodes publiques

Méthode Description
__construct ( Twig_Environment $twig, boolean $debug, TemplateLocator $templateLocator, string $defaultTemplate, array $templateByCode, integer | null $fallbackCode = null ) Constructor

Méthodes protégées

Méthode Description
findTemplate ( Request $request, string $format, integer $code, boolean $showException ) : Symfony\Component\Templating\TemplateReferenceInterface Return the template for rendering a status code
supports ( Request $request ) : boolean Checks if we can process the current event

Method Details

__construct() public méthode

Constructor
public __construct ( Twig_Environment $twig, boolean $debug, TemplateLocator $templateLocator, string $defaultTemplate, array $templateByCode, integer | null $fallbackCode = null )
$twig Twig_Environment Template engine
$debug boolean Show error (false) or exception (true) pages by default
$templateLocator Elcodi\Store\CoreBundle\Services\TemplateLocator Where to search for templates
$defaultTemplate string Default template
$templateByCode array Template by status code
$fallbackCode integer | null Status code for fallback exceptions

findTemplate() protected méthode

Return the template for rendering a status code
protected findTemplate ( Request $request, string $format, integer $code, boolean $showException ) : Symfony\Component\Templating\TemplateReferenceInterface
$request Symfony\Component\HttpFoundation\Request
$format string
$code integer Status code to locate a template
$showException boolean
Résultat Symfony\Component\Templating\TemplateReferenceInterface

supports() protected méthode

Checks if we can process the current event
protected supports ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
Résultat boolean

Property Details

$defaultTemplate protected_oe property

Template by default
protected string $defaultTemplate
Résultat string

$fallbackCode protected_oe property

Status code for non http-exceptions, or null for no fallback
protected int|null $fallbackCode
Résultat integer | null

$templateByCode protected_oe property

Template path by status code for rendering
protected string[] $templateByCode
Résultat string[]

$templateLocator protected_oe property

Template locator
protected TemplateLocator,Elcodi\Store\CoreBundle\Services $templateLocator
Résultat Elcodi\Store\CoreBundle\Services\TemplateLocator