| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function create(ContainerBuilder $container, $id, array $config) |
||
| 25 | { |
||
| 26 | $definition = new Definition('Jose\Object\JWK'); |
||
| 27 | $definition->setFactory([ |
||
| 28 | new Reference('jose.factory.jwk'), |
||
| 29 | 'createFromKeySet', |
||
| 30 | ]); |
||
| 31 | $definition->setArguments([$config['key_set'], $config['key_index']]); |
||
| 32 | $definition->setPublic($config['is_public']); |
||
| 33 | |||
| 34 | $container->setDefinition($id, $definition); |
||
| 35 | } |
||
| 36 | |||
| 66 |