ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
result2.php
Go to the documentation of this file.
1 <?php
2 
19 require_once(__DIR__ . "/../vendor/composer/vendor/autoload.php");
20 
21 function entry_point(string $name): 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  $pull[ILIAS\Component\Tests\Dependencies\Scenario2\Provides::class] = fn() => $provide[0][ILIAS\Component\Tests\Dependencies\Scenario2\Provides::class];
51  $internal = new Pimple\Container();
52 
53  $component_1->init($null_dic, $implement[1], $use, $contribute[1], $seek, $provide[1], $pull, $internal);
54 
55 
56  $entry_points = [
57  ];
58 
59  if (!isset($entry_points[$name])) {
60  throw new \LogicException("Unknown entry point: $name.");
61  }
62 
63  return $entry_points[$name]()->enter();
64 }
An object that looks like a Dependency Injection Container but actually does nothing.
Definition: NullDIC.php:27
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: result2.php:21