Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Router
Middleware
SignedRequestGatekeeper.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
SignedRequestGatekeeper
{
12
21
public
function
__invoke
(
Request
$request
) {
22
_elgg_services
()->urlSigner->assertValid($request->
getURL
());
23
}
24
}
Elgg\Request\getURL
getURL()
Get URL of the request.
Definition:
Request.php:133
$request
$request
Definition:
livesearch.php:12
Request
Elgg\Router\Middleware
Definition:
ActionMiddleware.php:3
Elgg\Router\Middleware\SignedRequestGatekeeper\__invoke
__invoke(Request $request)
Make sure the request is correctly signed.
Definition:
SignedRequestGatekeeper.php:21
Elgg\Router\Middleware\SignedRequestGatekeeper
Protects a route url tampering.
Definition:
SignedRequestGatekeeper.php:11
HttpException
Elgg\Request
Request container.
Definition:
Request.php:12
_elgg_services
_elgg_services()
Get the global service provider.
Definition:
elgglib.php:353
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11