| 1 | <?php |
||
| 8 | class Tokenizer |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $prefix; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Tokenizer constructor. |
||
| 17 | * @param string $prefix |
||
| 18 | */ |
||
| 19 | 1 | public function __construct($prefix = 'csrf') |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param ServerRequestInterface $request |
||
| 26 | * @param ResponseInterface $response |
||
| 27 | * @param callable $next |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | 1 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
|
| 37 | |||
| 38 | } |
||
| 39 |