ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ILIAS\StaticURL\Init Class Reference
+ Collaboration diagram for ILIAS\StaticURL\Init:

Static Public Member Functions

static init (Container $c)
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 34 of file Init.php.

Member Function Documentation

◆ init()

static ILIAS\StaticURL\Init::init ( Container  $c)
static

Definition at line 36 of file Init.php.

References $c, $handler, and ilRobotSettings\getInstance().

Referenced by ilInitialisation\initHTTPServices().

36  : void
37  {
38  $c['static_url.request_builder'] = static function (Container $c): RequestBuilder {
39  return new BundledRequestBuilder();
40  };
41 
42  $c['static_url.context'] = static function (Container $c): Context {
43  return new Context($c);
44  };
45 
46  $c['static_url.handler'] = static function (Container $c): HandlerService {
47  $handlers = (require ArtifactObjective::PATH() ?? []);
48  $handlers = array_map(static function (string $handler): Handler {
49  return new $handler();
50  }, $handlers);
51 
52  return new HandlerService(
53  $c['static_url.request_builder'],
54  $c['static_url.context'],
55  ...$handlers
56  );
57  };
58 
59  $c['static_url.uri_builder'] = static function (Container $c): URIBuilder {
60  return new StandardURIBuilder(
61  ILIAS_HTTP_PATH,
62  \ilRobotSettings::getInstance()?->robotSupportEnabled() ?? false
63  );
64  };
65 
66  $c['static_url'] = static function (Container $c): \ILIAS\StaticURL\Services {
67  return new Services(
68  $c['static_url.handler'],
69  $c['static_url.uri_builder'],
70  $c['static_url.context']
71  );
72  };
73  }
Interface Observer Contains several chained tasks and infos about them.
$c
Definition: deliver.php:9
static getInstance()
get singleton instance
$handler
Definition: oai.php:14
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: