| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function createService($name, array $config, ContainerBuilder $container) |
||
| 33 | { |
||
| 34 | $service_id = sprintf('jose.checker.%s', $name); |
||
| 35 | $definition = new Definition('Jose\Checker\CheckerManager'); |
||
| 36 | $definition->setFactory([ |
||
| 37 | new Reference('jose.factory.service'), |
||
| 38 | 'createChecker', |
||
| 39 | ]); |
||
| 40 | $definition->setArguments([ |
||
| 41 | $config['claims'], |
||
| 42 | $config['headers'], |
||
| 43 | ]); |
||
| 44 | |||
| 45 | $container->setDefinition($service_id, $definition); |
||
| 46 | } |
||
| 47 | |||
| 74 |