| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function createDefinition(ContainerBuilder $container, array $config): Definition |
||
| 32 | { |
||
| 33 | $definition = new Definition(\Jose\Component\Core\JWKSet::class); |
||
| 34 | $definition->setFactory([ |
||
| 35 | new Reference(JKUFactory::class), |
||
| 36 | 'loadFromUrl', |
||
| 37 | ]); |
||
| 38 | $definition->setArguments([ |
||
| 39 | $config['url'], |
||
| 40 | // $config['headers'], |
||
| 41 | ]); |
||
| 42 | $definition->addTag('jose.jwkset'); |
||
| 43 | |||
| 44 | return $definition; |
||
| 45 | } |
||
| 46 | |||
| 67 |