| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function createDefinition(ContainerBuilder $container, array $config) |
||
| 26 | { |
||
| 27 | $definition = new Definition('Jose\Object\JWKSet'); |
||
| 28 | $definition->setFactory([ |
||
| 29 | new Reference('jose.factory.jwk'), |
||
| 30 | 'createKeySets', |
||
| 31 | ]); |
||
| 32 | foreach ($config['id'] as $key_set_id) { |
||
| 33 | $ref = new Reference($key_set_id); |
||
| 34 | $definition->addMethodCall('addKeySet', [$ref]); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $definition; |
||
| 38 | } |
||
| 39 | |||
| 63 |