ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ 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
Init.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\StaticURL
;
22
23
use
ILIAS\DI\Container
;
24
use
ILIAS\StaticURL\Handler\HandlerService
;
25
use
ILIAS\StaticURL\Request\RequestBuilder
;
26
use
ILIAS\StaticURL\Request\BundledRequestBuilder
;
27
use
ILIAS\StaticURL\Builder\URIBuilder
;
28
use
ILIAS\StaticURL\Builder\StandardURIBuilder
;
29
use
ILIAS\StaticURL\Handler\Handler
;
30
34
final
class
Init
35
{
36
public
static
function
init
(
Container
$c
): void
37
{
38
$c[
'static_url.request_builder'
] = (
static
fn(
Container
$c):
RequestBuilder
=>
new
BundledRequestBuilder
());
39
40
$c[
'static_url.context'
] = (
static
fn(
Container
$c):
Context
=>
new
Context
($c));
41
42
$c[
'static_url.handler'
] =
static
function
(
Container
$c
):
HandlerService
{
43
$handlers = (require
ArtifactObjective::PATH
() ?? []);
44
$handlers =
array_map
(
static
fn(
string
$handler
):
Handler
=>
new
$handler
(), $handlers);
45
46
return
new
HandlerService
(
47
$c[
'static_url.request_builder'
],
48
$c[
'static_url.context'
],
49
...$handlers
50
);
51
};
52
53
$c[
'static_url.uri_builder'
] = (
static
fn(
Container
$c):
URIBuilder
=>
new
StandardURIBuilder
(
54
ILIAS_HTTP_PATH,
55
\
ilRobotSettings::getInstance
()?->robotSupportEnabled() ??
false
56
));
57
58
$c[
'static_url'
] = (
static
fn(
Container
$c):
Services
=>
new
Services
(
59
$c[
'static_url.handler'
],
60
$c[
'static_url.uri_builder'
],
61
$c[
'static_url.context'
]
62
));
63
}
64
65
}
ILIAS\StaticURL\Handler\HandlerService
Definition:
HandlerService.php:34
URIBuilder
RequestBuilder
Handler
array_map
ILIAS\StaticURL\Request\BundledRequestBuilder
Definition:
BundledRequestBuilder.php:29
ILIAS\Setup\Artifact\BuildArtifactObjective\PATH
static PATH()
Definition:
BuildArtifactObjective.php:40
ILIAS\StaticURL\Context
Definition:
Context.php:28
ILIAS\StaticURL\Init\init
static init(Container $c)
Definition:
Init.php:36
StandardURIBuilder
ILIAS\StaticURL\Init
Definition:
Init.php:34
$c
$c
Definition:
deliver.php:25
HandlerService
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
Services
ILIAS\StaticURL
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArtifactObjective.php:21
Container
ILIAS\StaticURL\Builder\URIBuilder
Definition:
URIBuilder.php:29
ilRobotSettings\getInstance
static getInstance()
get singleton instance
Definition:
class.ilRobotSettings.php:44
BundledRequestBuilder
$handler
$handler
Definition:
oai.php:30
ILIAS\StaticURL\Request\RequestBuilder
Definition:
RequestBuilder.php:29
ILIAS\StaticURL\Builder\StandardURIBuilder
Definition:
StandardURIBuilder.php:29
components
ILIAS
StaticURL
src
Init.php
Generated on Sun Apr 6 2025 23:02:57 for ILIAS by
1.8.13 (using
Doxyfile
)