ILIAS  release_8 Revision v8.24
wac.php
Go to the documentation of this file.
1<?php
9
10chdir('../../');
12require_once('./libs/composer/vendor/autoload.php');
13
14$container = new \ILIAS\DI\Container();
15
16//manually init http service
17$container['http.request_factory'] = static fn ($c) => new \ILIAS\HTTP\Request\RequestFactoryImpl();
18
19$container['http.response_factory'] = static fn ($c) => new \ILIAS\HTTP\Response\ResponseFactoryImpl();
20
21$container['http.cookie_jar_factory'] = static fn ($c) => new \ILIAS\HTTP\Cookies\CookieJarFactoryImpl();
22
23$container['http.response_sender_strategy'] = static fn ($c) => new \ILIAS\HTTP\Response\Sender\DefaultResponseSenderStrategy();
24
25$container['http.duration_factory'] = static fn ($c) => new \ILIAS\HTTP\Duration\DurationFactory(
26 new \ILIAS\HTTP\Duration\Increment\IncrementFactory()
27);
28
29$container['http'] = static fn ($c) => new \ILIAS\HTTP\Services($c);
30
32
37
38//TODO: fix tests and mod_xsendfile which refuses to work
40
41//send response
42$Services->sendResponse();
static run(Services $httpState, CookieFactory $cookieFactory)
$c
Definition: cli.php:38
Class ChatMainBarProvider \MainMenu\Provider.
$container
@noRector
Definition: wac.php:14
$GLOBALS["DIC"]
Definition: wac.php:31
$Services
Definition: wac.php:36