Elgg  Version master
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
Elgg\Router\Middleware\MaintenanceGatekeeper Class Reference

Protects a route if site is in maintenance mode. More...

Public Member Functions

 __invoke (Request $request)
 Gatekeeper. More...
 

Protected Member Functions

 isAllowedAction (Request $request)
 Checks if current action is allowed. More...
 

Static Protected Member Functions

static allowCurrentUrl (Request $request)
 When in maintenance mode, should the current URL be handled normally? More...
 

Detailed Description

Protects a route if site is in maintenance mode.

Definition at line 10 of file MaintenanceGatekeeper.php.

Member Function Documentation

Elgg\Router\Middleware\MaintenanceGatekeeper::__invoke ( Request  $request)

Gatekeeper.

Parameters
Request$requestRequest
Returns
||void

Definition at line 19 of file MaintenanceGatekeeper.php.

static Elgg\Router\Middleware\MaintenanceGatekeeper::allowCurrentUrl ( Request  $request)
staticprotected

When in maintenance mode, should the current URL be handled normally?

Parameters
Request$requestRequest
Returns
bool

Definition at line 86 of file MaintenanceGatekeeper.php.

Elgg\Router\Middleware\MaintenanceGatekeeper::isAllowedAction ( Request  $request)
protected

Checks if current action is allowed.

Currently only allows login action for admin users.

Parameters
Request$requestRequest
Returns
bool

Definition at line 55 of file MaintenanceGatekeeper.php.


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