| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function load(array $configs, ContainerBuilder $container) |
||
| 39 | { |
||
| 40 | foreach ($configs[$this->name()] as $name => $itemConfig) { |
||
| 41 | $service_id = sprintf('jose.jwe_decrypter.%s', $name); |
||
| 42 | $definition = new Definition(JWEDecrypterService::class); |
||
| 43 | $definition |
||
| 44 | ->setFactory([new Reference(JWEDecrypterFactory::class), 'create']) |
||
| 45 | ->setArguments([ |
||
| 46 | $itemConfig['key_encryption_algorithms'], |
||
| 47 | $itemConfig['content_encryption_algorithms'], |
||
| 48 | $itemConfig['compression_methods'], |
||
| 49 | ]) |
||
| 50 | ->addTag('jose.jwe_decrypter') |
||
| 51 | ->setPublic($itemConfig['is_public']); |
||
| 52 | |||
| 53 | $container->setDefinition($service_id, $definition); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | } |
||
| 57 |