Elgg  Version master
Public Member Functions | Protected 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...
 

Protected Member Functions

 isPublicPage (string $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.

Elgg\Router\Middleware\WalledGarden::isPublicPage ( string  $url)
protected

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' event.

Parameters
string$urlDefaults to the current URL
Returns
bool

Definition at line 53 of file WalledGarden.php.


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