Drupal 8  8.0.2
MaintenanceModeSubscriber Class Reference
Inheritance diagram for MaintenanceModeSubscriber:

Public Member Functions

 __construct (MaintenanceModeInterface $maintenance_mode, AccountInterface $account)
 onKernelRequestMaintenance (GetResponseEvent $event)

Static Public Member Functions

static getSubscribedEvents ()

Protected Attributes


Detailed Description

Maintenance mode subscriber to logout users.

Constructor & Destructor Documentation

__construct ( MaintenanceModeInterface  $maintenance_mode,
AccountInterface  $account 

Constructs a new MaintenanceModeSubscriber.

\Drupal\Core\Site\MaintenanceModeInterface$maintenance_modeThe maintenance mode.
\Drupal\Core\Session\AccountInterface$accountThe current user.

Member Function Documentation

static getSubscribedEvents ( )


onKernelRequestMaintenance ( GetResponseEvent  $event)

Logout users if site is in maintenance mode.

\Symfony\Component\HttpKernel\Event\GetResponseEvent$eventThe event to process.

References RouteMatch\createFromRequest(), and Drupal\url().

Here is the call graph for this function:

The documentation for this class was generated from the following file: