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