Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| IdentifierGeneratorServiceProvider | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __invoke | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace oat\tao\model\IdentifierGenerator\ServiceProvider; |
| 4 | |
| 5 | use oat\generis\model\data\Ontology; |
| 6 | use oat\generis\model\DependencyInjection\ContainerServiceProviderInterface; |
| 7 | use oat\tao\model\featureFlag\FeatureFlagChecker; |
| 8 | use oat\tao\model\IdentifierGenerator\Generator\IdentifierGeneratorProxy; |
| 9 | use oat\tao\model\IdentifierGenerator\Generator\NumericIdentifierGenerator; |
| 10 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 11 | |
| 12 | use function Symfony\Component\DependencyInjection\Loader\Configurator\service; |
| 13 | |
| 14 | class IdentifierGeneratorServiceProvider implements ContainerServiceProviderInterface |
| 15 | { |
| 16 | public function __invoke(ContainerConfigurator $configurator): void |
| 17 | { |
| 18 | $services = $configurator->services(); |
| 19 | |
| 20 | $services->set(NumericIdentifierGenerator::class, NumericIdentifierGenerator::class); |
| 21 | |
| 22 | $services |
| 23 | ->set(IdentifierGeneratorProxy::class, IdentifierGeneratorProxy::class) |
| 24 | ->public() |
| 25 | ->args([ |
| 26 | service(Ontology::SERVICE_ID), |
| 27 | ]); |
| 28 | } |
| 29 | } |