ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestDIC Class Reference
+ Collaboration diagram for ilTestDIC:

Static Public Member Functions

static dic ()
 

Static Protected Member Functions

static buildDIC ()
 

Static Protected Attributes

static Container $dic = null
 

Detailed Description

Definition at line 25 of file class.ilTestDIC.php.

Member Function Documentation

◆ buildDIC()

static ilTestDIC::buildDIC ( )
staticprotected

Definition at line 37 of file class.ilTestDIC.php.

References Vendor\Package\$c, $dic, and $DIC.

37  : Container
38  {
39  global $DIC;
40  $dic = $DIC;
41 
42  $dic['shuffler'] = static fn($c): ilTestShuffler =>
43  new ilTestShuffler($dic['refinery']);
44 
45  $dic['factory.results'] = static fn($c): ilTestResultsFactory =>
47  $c['shuffler'],
48  $dic['ui.factory'],
49  $dic['ui.renderer']
50  );
51 
52  $dic['factory.results_presentation'] = static fn($c): ilTestResultsPresentationFactory =>
54  $dic['ui.factory'],
55  $dic['ui.renderer'],
56  $dic['refinery'],
57  new ILIAS\Data\Factory(),
58  $dic['http'],
59  $dic['lng']
60  );
61 
62  $dic['main_settings_repository'] = static fn($c): ilObjTestMainSettingsDatabaseRepository =>
64 
65  $dic['participantAccessFilterFactory'] = static fn($c): ilTestParticipantAccessFilterFactory =>
67 
68  $dic['manScoringDoneHelper'] = static fn($c): TestManScoringDoneHelper =>
70 
71  $dic['request.internal'] = static fn($c): InternalRequestService =>
72  new InternalRequestService($dic['http'], $dic['refinery']);
73 
74  return $dic;
75  }
Class ChatMainBarProvider .
global $DIC
Definition: feed.php:28
static Container $dic

◆ dic()

static ilTestDIC::dic ( )
static

Definition at line 29 of file class.ilTestDIC.php.

References $dic.

Referenced by ilObjTest\getLocalDIC(), ilTestBaseTestCase\getTestObjMock(), and ilObjTestListGUI\initItem().

29  : Container
30  {
31  if (!self::$dic) {
32  self::$dic = self::buildDIC();
33  }
34  return self::$dic;
35  }
$dic
Definition: result.php:32
+ Here is the caller graph for this function:

Field Documentation

◆ $dic

Container ilTestDIC::$dic = null
staticprotected

Definition at line 27 of file class.ilTestDIC.php.

Referenced by buildDIC().


The documentation for this class was generated from the following file: