Elgg
Version master
engine
classes
Elgg
Router
Middleware
CsrfFirewall.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Router\Middleware
;
4
5
use
Elgg\Exceptions\Http\CsrfException
;
6
use
Elgg\Request
;
7
11
class
CsrfFirewall
{
12
21
public
function
__invoke
(
Request
$request
) {
22
$request
->elgg()->csrf->validate(
$request
);
23
}
24
}
Elgg\Exceptions\Http\CsrfException
Thrown when CSRF tokens mismatch.
Definition:
CsrfException.php:10
Elgg\Request
Request container.
Definition:
Request.php:12
Elgg\Router\Middleware\CsrfFirewall
Middleware for validating CSRF tokens.
Definition:
CsrfFirewall.php:11
Elgg\Router\Middleware\CsrfFirewall\__invoke
__invoke(Request $request)
Validate CSRF tokens.
Definition:
CsrfFirewall.php:21
$request
$request
Definition:
livesearch.php:12
Elgg\Router\Middleware
Definition:
ActionMiddleware.php:3
Generated on Fri Aug 29 2025 00:01:58 for Elgg by
1.9.1