PHP 클래스 Contao\CoreBundle\EventListener\BypassMaintenanceListener

파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, boolean $disableIpCheck, string $requestAttribute = '_bypass_maintenance' ) Constructor.
onKernelRequest ( GetResponseEvent $event ) Adds the request attribute to the request.

비공개 메소드들

메소드 설명
hasAuthenticatedBackendUser ( Request $request ) : boolean Checks if there is an authenticated back end user.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, boolean $disableIpCheck, string $requestAttribute = '_bypass_maintenance' )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$disableIpCheck boolean
$requestAttribute string

onKernelRequest() 공개 메소드

Adds the request attribute to the request.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent