PHP 클래스 Bolt\EventListener\NotFoundListener

저자: Carson Full ([email protected])
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: bolt/bolt

보호된 프로퍼티들

프로퍼티 타입 설명
$notFoundPage string
$render Bolt\Render
$storage Bolt\Legacy\Storage
$templateChooser Bolt\TemplateChooser

공개 메소드들

메소드 설명
__construct ( string $notFoundPage, Storage $storage, TemplateChooser $templateChooser, Twig_Environment $twig, Render $render ) NotFoundListener constructor.
getSubscribedEvents ( )
onKernelException ( GetResponseForExceptionEvent $event ) Render the not found page if on frontend and http exception

비공개 메소드들

메소드 설명
renderNotFound ( GetResponseForExceptionEvent $event, string $template, array $context ) Render a not found template.

메소드 상세

__construct() 공개 메소드

NotFoundListener constructor.
public __construct ( string $notFoundPage, Storage $storage, TemplateChooser $templateChooser, Twig_Environment $twig, Render $render )
$notFoundPage string
$storage Bolt\Legacy\Storage
$templateChooser Bolt\TemplateChooser
$twig Twig_Environment
$render Bolt\Render

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onKernelException() 공개 메소드

Render the not found page if on frontend and http exception
public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent

프로퍼티 상세

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

protected string $notFoundPage
리턴 string

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

protected Render,Bolt $render
리턴 Bolt\Render

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

protected Storage,Bolt\Legacy $storage
리턴 Bolt\Legacy\Storage

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

protected TemplateChooser,Bolt $templateChooser
리턴 Bolt\TemplateChooser