| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function create(ContainerBuilder $container, $id, array $config) |
||
| 25 | { |
||
| 26 | $definition = new Definition('Jose\Object\RotatableJWK'); |
||
| 27 | $definition->setFactory([ |
||
| 28 | new Reference('jose.factory.jwk'), |
||
| 29 | 'createRotatableKey', |
||
| 30 | ]); |
||
| 31 | |||
| 32 | $key_config = $this->getKeyConfig($config); |
||
| 33 | |||
| 34 | $definition->setArguments([$config['storage_path'], $key_config, $config['ttl']]); |
||
| 35 | $container->setDefinition($id, $definition); |
||
| 36 | } |
||
| 37 | |||
| 62 |