Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function prepend(ContainerBuilder $container) |
||
28 | { |
||
29 | // Configure the symfony/security bundle |
||
30 | // Add the API Gateway user provider. |
||
31 | $container |
||
32 | ->loadFromExtension( |
||
33 | 'security', |
||
34 | [ |
||
35 | 'providers' => [ |
||
36 | 'api_gw_authentication' => [ |
||
37 | 'id' => 'api_gw_authentication.user_provider', |
||
38 | ], |
||
39 | ], |
||
40 | ] |
||
41 | ); |
||
42 | |||
43 | // Configure the lexik/jwt-authenication bundle |
||
44 | $container |
||
45 | ->loadFromExtension( |
||
46 | 'lexik_jwt_authentication', |
||
47 | [ |
||
48 | 'user_identity_field' => 'sub', |
||
49 | ] |
||
53 |