PHP Class Contao\CoreBundle\EventListener\BypassMaintenanceListener

Mostra file Open project: contao/core-bundle Class Usage Examples

Public Methods

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

Private Methods

Method Description
hasAuthenticatedBackendUser ( Request $request ) : boolean Checks if there is an authenticated back end user.

Method Details

__construct() public method

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() public method

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