ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
result4.php File Reference

Go to the source code of this file.

Functions

 entry_point (string $name)
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 

Function Documentation

◆ entry_point()

entry_point ( string  $name)

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 21 of file result4.php.

21  : int
22 {
23  $null_dic = new ILIAS\Component\Dependencies\NullDIC();
24  $implement = new Pimple\Container();
25  $contribute = new Pimple\Container();
26  $provide = new Pimple\Container();
27 
28 
30 
31  $implement[0] = new ILIAS\Component\Dependencies\RenamingDIC(new Pimple\Container());
32  $use = new Pimple\Container();
33  $contribute[0] = new ILIAS\Component\Dependencies\RenamingDIC(new Pimple\Container());
34  $seek = new Pimple\Container();
35  $provide[0] = new Pimple\Container();
36  $pull = new Pimple\Container();
37  $internal = new Pimple\Container();
38 
39  $component_0->init($null_dic, $implement[0], $use, $contribute[0], $seek, $provide[0], $pull, $internal);
40 
41 
43 
44  $implement[1] = new ILIAS\Component\Dependencies\RenamingDIC(new Pimple\Container());
45  $use = new Pimple\Container();
46  $contribute[1] = new ILIAS\Component\Dependencies\RenamingDIC(new Pimple\Container());
47  $seek = new Pimple\Container();
48  $provide[1] = new Pimple\Container();
49  $pull = new Pimple\Container();
50  $internal = new Pimple\Container();
51 
52  $component_1->init($null_dic, $implement[1], $use, $contribute[1], $seek, $provide[1], $pull, $internal);
53 
54 
56 
57  $implement[2] = new ILIAS\Component\Dependencies\RenamingDIC(new Pimple\Container());
58  $use = new Pimple\Container();
59  $contribute[2] = new ILIAS\Component\Dependencies\RenamingDIC(new Pimple\Container());
60  $seek = new Pimple\Container();
61  $seek[ILIAS\Component\Tests\Dependencies\Scenario4\Contribution::class] = fn() => [
62  $contribute[0][ILIAS\Component\Tests\Dependencies\Scenario4\Contribution::class . "_0"],
63  $contribute[1][ILIAS\Component\Tests\Dependencies\Scenario4\Contribution::class . "_0"],
64  $contribute[1][ILIAS\Component\Tests\Dependencies\Scenario4\Contribution::class . "_1"],
65  ];
66  $provide[2] = new Pimple\Container();
67  $pull = new Pimple\Container();
68  $internal = new Pimple\Container();
69 
70  $component_2->init($null_dic, $implement[2], $use, $contribute[2], $seek, $provide[2], $pull, $internal);
71 
72 
73  $entry_points = [
74  ];
75 
76  if (!isset($entry_points[$name])) {
77  throw new \LogicException("Unknown entry point: $name.");
78  }
79 
80  return $entry_points[$name]()->enter();
81 }
An object that looks like a Dependency Injection Container but actually does nothing.
Definition: NullDIC.php:27