Elgg  Version 3.0
Gatekeeper.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Router\Middleware;
4 
6 use Elgg\Request;
7 
11 class Gatekeeper {
12 
21  public function __invoke(Request $request) {
22  $request->elgg()->gatekeeper->assertAuthenticatedUser();
23  }
24 }
__invoke(Request $request)
Gatekeeper.
Definition: Gatekeeper.php:21
$request
Page handler for autocomplete endpoint.
Definition: livesearch.php:9
Protects a route from non-authenticated users.
Definition: Gatekeeper.php:11
elgg()
Get the DI container.
Definition: Request.php:146
Request container.
Definition: Request.php:13