ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
result5.php
Go to the documentation of this file.
1<?php
2
19require_once(__DIR__ . "/../vendor/composer/vendor/autoload.php");
20
21function entry_point(string $name): int
22{
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
42 $entry_points = [
43 "just a name" => fn() => $contribute[0][ILIAS\Component\EntryPoint::class . "_0"],
44 ];
45
46 if (!isset($entry_points[$name])) {
47 throw new \LogicException("Unknown entry point: $name.");
48 }
49
50 return $entry_points[$name]()->enter();
51}
An object that looks like a Dependency Injection Container but actually does nothing.
Definition: NullDIC.php:28
A wrapper around another DIC that superficially adds a _# and passes them to an underlying DIC.
Definition: RenamingDIC.php:29
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: result5.php:21