PHP Class Contao\CoreBundle\EventListener\BypassMaintenanceListener

Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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 méthode

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