Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function process(ContainerBuilder $container): void |
||
27 | { |
||
28 | if (!$container->hasDefinition(JWESerializerManagerFactory::class)) { |
||
29 | return; |
||
30 | } |
||
31 | |||
32 | $definition = $container->getDefinition(JWESerializerManagerFactory::class); |
||
33 | |||
34 | $taggedAlgorithmServices = $container->findTaggedServiceIds('jose.jwe.serializer'); |
||
35 | foreach ($taggedAlgorithmServices as $id => $tags) { |
||
36 | $definition->addMethodCall('add', [new Reference($id)]); |
||
37 | } |
||
38 | } |
||
39 | } |
||
40 |