| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 0.00% | 0 / 21 |  | 0.00% | 0 / 1 | CRAP |  | 0.00% | 0 / 1 | 
| QtiServiceProvider |  | 0.00% | 0 / 21 |  | 0.00% | 0 / 1 | 2 |  | 0.00% | 0 / 1 | 
| __invoke |  | 0.00% | 0 / 21 |  | 0.00% | 0 / 1 | 2 | |||
| 1 | <?php | 
| 2 | |
| 3 | /** | 
| 4 | * This program is free software; you can redistribute it and/or | 
| 5 | * modify it under the terms of the GNU General Public License | 
| 6 | * as published by the Free Software Foundation; under version 2 | 
| 7 | * of the License (non-upgradable). | 
| 8 | * | 
| 9 | * This program is distributed in the hope that it will be useful, | 
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 
| 12 | * GNU General Public License for more details. | 
| 13 | * | 
| 14 | * You should have received a copy of the GNU General Public License | 
| 15 | * along with this program; if not, write to the Free Software | 
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
| 17 | * | 
| 18 | * Copyright (c) 2024 (original work) Open Assessment Technologies SA. | 
| 19 | */ | 
| 20 | |
| 21 | declare(strict_types=1); | 
| 22 | |
| 23 | namespace oat\taoQtiTest\models\Qti\ServiceProvider; | 
| 24 | |
| 25 | use oat\generis\model\DependencyInjection\ContainerServiceProviderInterface; | 
| 26 | use oat\oatbox\log\LoggerService; | 
| 27 | use oat\taoQtiItem\model\qti\converter\CaseConversionService; | 
| 28 | use oat\taoQtiItem\model\ValidationService; | 
| 29 | use oat\taoQtiTest\models\Qti\Converter\AssessmentSectionConverter; | 
| 30 | use oat\taoQtiTest\models\Qti\Converter\TestConverter; | 
| 31 | use oat\taoQtiTest\models\Qti\Identifier\Service\QtiIdentifierSetter; | 
| 32 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | 
| 33 | use taoQtiTest_models_classes_QtiTestService; | 
| 34 | |
| 35 | use function Symfony\Component\DependencyInjection\Loader\Configurator\service; | 
| 36 | |
| 37 | class QtiServiceProvider implements ContainerServiceProviderInterface | 
| 38 | { | 
| 39 | public function __invoke(ContainerConfigurator $configurator): void | 
| 40 | { | 
| 41 | $services = $configurator->services(); | 
| 42 | |
| 43 | $services | 
| 44 | ->set(QtiIdentifierSetter::class, QtiIdentifierSetter::class) | 
| 45 | ->args([ | 
| 46 | service(taoQtiTest_models_classes_QtiTestService::class), | 
| 47 | service(LoggerService::SERVICE_ID), | 
| 48 | ]); | 
| 49 | |
| 50 | $services | 
| 51 | ->set(TestConverter::class) | 
| 52 | ->args([ | 
| 53 | service(CaseConversionService::class), | 
| 54 | service(ValidationService::SERVICE_ID) | 
| 55 | ]) | 
| 56 | ->public(); | 
| 57 | |
| 58 | $services | 
| 59 | ->set(AssessmentSectionConverter::class) | 
| 60 | ->args([ | 
| 61 | service(CaseConversionService::class), | 
| 62 | service(ValidationService::SERVICE_ID) | 
| 63 | ]) | 
| 64 | ->public(); | 
| 65 | } | 
| 66 | } |