Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
IdentifierGeneratorServiceProvider
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __invoke
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace oat\tao\model\IdentifierGenerator\ServiceProvider;
4
5use oat\generis\model\data\Ontology;
6use oat\generis\model\DependencyInjection\ContainerServiceProviderInterface;
7use oat\tao\model\featureFlag\FeatureFlagChecker;
8use oat\tao\model\IdentifierGenerator\Generator\IdentifierGeneratorProxy;
9use oat\tao\model\IdentifierGenerator\Generator\NumericIdentifierGenerator;
10use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
11
12use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
13
14class 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}