Elgg  Version 4.3
AjaxGatekeeper.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Router\Middleware;
4 
6 use Elgg\Request;
7 
12 
21  public function __invoke(Request $request) {
22  $request->elgg()->gatekeeper->assertXmlHttpRequest();
23  }
24 }
$request
Definition: livesearch.php:11
Protects a route from non-xhr requests.
elgg()
Get the DI container.
Definition: Request.php:145
Request container.
Definition: Request.php:12
__invoke(Request $request)
Gatekeeper.