Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Router
Middleware
AjaxGatekeeper.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Router\Middleware
;
4
5
use
Elgg\Exceptions\HttpException
;
6
use
Elgg\Request
;
7
11
class
AjaxGatekeeper
{
12
21
public
function
__invoke
(
Request
$request
) {
22
$request->
elgg
()->gatekeeper->assertXmlHttpRequest();
23
}
24
}
$request
$request
Definition:
livesearch.php:12
Request
Elgg\Router\Middleware
Definition:
ActionMiddleware.php:3
Elgg\Router\Middleware\AjaxGatekeeper
Protects a route from non-xhr requests.
Definition:
AjaxGatekeeper.php:11
Elgg\Request\elgg
elgg()
Get the DI container.
Definition:
Request.php:125
HttpException
Elgg\Request
Request container.
Definition:
Request.php:12
Elgg\Router\Middleware\AjaxGatekeeper\__invoke
__invoke(Request $request)
Gatekeeper.
Definition:
AjaxGatekeeper.php:21
Generated on Sat Dec 21 2024 00:02:52 for Elgg by
1.8.11