ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
result5.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
29
$component_0 =
new
ILIAS\Component\Tests\Dependencies\Scenario5\ComponentA
();
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
}
ILIAS\Component\Tests\Dependencies\Scenario5\ComponentA
Definition:
scenario5.php:38
Container
ILIAS\Component\Dependencies\NullDIC
An object that looks like a Dependency Injection Container but actually does nothing.
Definition:
NullDIC.php:27
RenamingDIC
entry_point
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
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
Component
tests
Dependencies
scenarios
result5.php
Generated on Tue Apr 8 2025 23:02:57 for ILIAS by
1.8.13 (using
Doxyfile
)