Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
AssessmentResultResolverContainerServiceProvider | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__invoke | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace oat\taoResultServer\models\AssessmentResultResolver\DependencyInjection; |
4 | |
5 | use GuzzleHttp\Client; |
6 | use oat\generis\model\DependencyInjection\ContainerServiceProviderInterface; |
7 | use oat\taoResultServer\models\AssessmentResultResolver\AssessmentResultFileResponseResolver; |
8 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
9 | |
10 | use function Symfony\Component\DependencyInjection\Loader\Configurator\inline_service; |
11 | |
12 | class AssessmentResultResolverContainerServiceProvider implements ContainerServiceProviderInterface |
13 | { |
14 | public function __invoke(ContainerConfigurator $configurator): void |
15 | { |
16 | $services = $configurator->services(); |
17 | |
18 | $services->set(AssessmentResultFileResponseResolver::class, AssessmentResultFileResponseResolver::class) |
19 | ->public() |
20 | ->args([ |
21 | inline_service(Client::class) |
22 | ]); |
23 | } |
24 | } |