| Total Complexity | 1 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CsrfConstraint extends Constraint |
||
| 12 | { |
||
| 13 | const INVALID_TOKEN_ERROR = 'cd108896-d12a-4455-a6cc-ba13708c8e7f'; |
||
| 14 | |||
| 15 | protected static $errorNames = [ |
||
| 16 | self::INVALID_TOKEN_ERROR => 'INVALID_TOKEN_ERROR', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The constraint message |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $message = 'The CSRF token is invalid.'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var CsrfTokenManagerInterface |
||
| 28 | */ |
||
| 29 | public $manager; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 12 | public function getDefaultOption() |
|
| 39 |