Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
AssessmentResultResolverContainerServiceProvider
0.00% covered (danger)
0.00%
0 / 6
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 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace oat\taoResultServer\models\AssessmentResultResolver\DependencyInjection;
4
5use GuzzleHttp\Client;
6use oat\generis\model\DependencyInjection\ContainerServiceProviderInterface;
7use oat\taoResultServer\models\AssessmentResultResolver\AssessmentResultFileResponseResolver;
8use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
9
10use function Symfony\Component\DependencyInjection\Loader\Configurator\inline_service;
11
12class 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}