Elgg  Version master
SignedRequestGatekeeper.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  _elgg_services()->urlSigner->assertValid($request->getURL());
23  }
24 }
getURL()
Get URL of the request.
Definition: Request.php:133
$request
Definition: livesearch.php:12
__invoke(Request $request)
Make sure the request is correctly signed.
Request container.
Definition: Request.php:12
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351