ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.Service.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\TestQuestionPool;
22 
24 
25 class Service
26 {
27  protected Container $DIC;
28 
29  public function __construct(Container $DIC)
30  {
31  $this->DIC = $DIC;
32  }
33 
37  public function internal(): InternalService
38  {
39  return new InternalService($this->DIC);
40  }
41 
42  public function questionInfo(): QuestionInfoService
43  {
44  return new QuestionInfoService($this->DIC->database(), $this->DIC['component.factory'], $this->DIC->language());
45  }
46 
48  {
49  return new QuestionFilesService();
50  }
51 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
function questionInfo()
Internal service, do not use in other components.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...