| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class CsrfProvider implements ServiceProviderInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param Container $container |
||
| 16 | */ |
||
| 17 | 1 | public function register(Container $container) |
|
| 18 | { |
||
| 19 | 1 | $container['csrf.tokenGenerator.entropy'] = 256; |
|
| 20 | |||
| 21 | $container['csrf.tokenGenerator'] = function () use ($container) { |
||
| 22 | 1 | return new CsrfTokenGenerator($container['csrf.tokenGenerator.entropy']); |
|
| 23 | }; |
||
| 24 | |||
| 25 | $container['csrf.errorResponseHandler'] = new class() implements CsrfErrorHandlerInterface { |
||
| 26 | 1 | public function errorResponse( |
|
| 45 | } |
||
| 46 |