◆ init()
| static ILIAS\StaticURL\Init::init |
( |
Container |
$c | ) |
|
|
static |
Definition at line 38 of file Init.php.
38 : void
39 {
40 $c[
'static_url.request_builder'] = (
static fn(Container
$c): RequestBuilder => new BundledRequestBuilder());
41
42 $c[
'static_url.context'] = (
static fn(Container
$c): Context => new Context(
$c));
43
44 $c[
'static_url.session_store'] = (
static fn(Container
$c): SessionStore => new ILIASSessionStore());
45
46 $c[
'static_url.handler'] =
static function (Container
$c): HandlerService {
48 $handlers = array_map(
static fn(
string $handler): Handler =>
new $handler(), $handlers);
49
50 return new HandlerService(
51 $c[
'static_url.request_builder'],
52 $c[
'static_url.context'],
53 $handlers,
54 $c[
'static_url.session_store']
55 );
56 };
57
58 $c[
'static_url.config'] =
static fn(): Configuration => new StaticURLConfig();
59
60 $c[
'static_url.uri_builder'] = (
static fn(Container
$c): URIBuilder => new StandardURIBuilder(
61 $c[
'static_url.config']
62 ));
63
64 $c[
'static_url'] = (
static fn(Container
$c): Services => new Services(
65 $c[
'static_url.handler'],
66 $c[
'static_url.uri_builder'],
67 $c[
'static_url.context']
68 ));
69 }
References $c, $handler, and ILIAS\Setup\Artifact\BuildArtifactObjective\PATH().
Referenced by ilInitialisation\initHTTPServices().
The documentation for this class was generated from the following file: