PHP 클래스 Elcodi\Store\CoreBundle\Controller\ExceptionController

상속: extends Symfony\Bundle\TwigBundle\Controller\ExceptionController
파일 보기 프로젝트 열기: elcodi/bamboo

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__construct ( Twig_Environment $twig, boolean $debug, TemplateLocator $templateLocator, string $defaultTemplate, array $templateByCode, integer | null $fallbackCode = null ) Constructor

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

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() 보호된 메소드

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
리턴 Symfony\Component\Templating\TemplateReferenceInterface

supports() 보호된 메소드

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

프로퍼티 상세

$defaultTemplate 보호되어 있는 프로퍼티

Template by default
protected string $defaultTemplate
리턴 string

$fallbackCode 보호되어 있는 프로퍼티

Status code for non http-exceptions, or null for no fallback
protected int|null $fallbackCode
리턴 integer | null

$templateByCode 보호되어 있는 프로퍼티

Template path by status code for rendering
protected string[] $templateByCode
리턴 string[]

$templateLocator 보호되어 있는 프로퍼티

Template locator
protected TemplateLocator,Elcodi\Store\CoreBundle\Services $templateLocator
리턴 Elcodi\Store\CoreBundle\Services\TemplateLocator