PHP 클래스 Symfony\Component\HttpKernel\EventListener\FragmentListener

All URL paths starting with /_fragment are handled as content fragments by this listener. If throws an AccessDeniedHttpException exception if the request is not signed or if it is not an internal sub-request.
저자: Fabien Potencier ([email protected])
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: symfony/http-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\UriSigner $signer, string $fragmentPath = '/_fragment' ) Constructor.
getSubscribedEvents ( )
onKernelRequest ( GetResponseEvent $event ) Fixes request attributes when the path is '/_fragment'.

보호된 메소드들

메소드 설명
validateRequest ( Request $request )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\HttpKernel\UriSigner $signer, string $fragmentPath = '/_fragment' )
$signer Symfony\Component\HttpKernel\UriSigner A UriSigner instance
$fragmentPath string The path that triggers this listener

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onKernelRequest() 공개 메소드

Fixes request attributes when the path is '/_fragment'.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent A GetResponseEvent instance

validateRequest() 보호된 메소드

protected validateRequest ( Request $request )
$request Symfony\Component\HttpFoundation\Request