Elgg  Version 6.0
CsrfFirewall.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Router\Middleware;
4 
6 use Elgg\Request;
7 
11 class CsrfFirewall {
12 
21  public function __invoke(Request $request) {
22  $request->elgg()->csrf->validate($request);
23  }
24 }
$request
Definition: livesearch.php:12
elgg()
Get the DI container.
Definition: Request.php:125
Request container.
Definition: Request.php:12
__invoke(Request $request)
Validate CSRF tokens.
Middleware for validating CSRF tokens.