Elgg  Version 3.0
Public Member Functions | Static Public Member Functions | List of all members
Elgg\Router\Middleware\WalledGarden Class Reference

Protects a route from non-authenticated users in a walled garden mode. More...

Public Member Functions

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

Static Public Member Functions

static isPublicPage ($url= '')
 Checks if the page should be allowed to be served in a walled garden mode. More...
 

Detailed Description

Protects a route from non-authenticated users in a walled garden mode.

Definition at line 11 of file WalledGarden.php.

Member Function Documentation

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

Gatekeeper.

Parameters
Request$requestRequest
Returns
void
Exceptions
WalledGardenException

Definition at line 21 of file WalledGarden.php.

static Elgg\Router\Middleware\WalledGarden::isPublicPage (   $url = '')
static

Checks if the page should be allowed to be served in a walled garden mode.

Pages are registered to be public by { public_pages walled_garden}.

Parameters
string$urlDefaults to the current URL
Returns
bool

Definition at line 54 of file WalledGarden.php.


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