Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function process(ContainerBuilder $container) |
||
27 | { |
||
28 | if (!$container->hasDefinition(JwtBearerGrantType::class) || !$container->hasAlias('oauth2_server.trusted_issuer_repository')) { |
||
29 | return; |
||
30 | } |
||
31 | |||
32 | $definition = $container->getDefinition(JwtBearerGrantType::class); |
||
33 | $definition->addMethodCall('enableTrustedIssuerSupport', [new Reference('oauth2_server.trusted_issuer_repository')]); |
||
34 | } |
||
35 | } |
||
36 |