◆ init()
static ILIAS\StaticURL\Init::init |
( |
Container |
$c | ) |
|
|
static |
Definition at line 36 of file Init.php.
36 : 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 {
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,
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 }
References $c, $handler, ilRobotSettings\getInstance(), and ILIAS\Setup\Artifact\BuildArtifactObjective\PATH().
Referenced by ilInitialisation\initHTTPServices().
The documentation for this class was generated from the following file: