ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
wac.php
Go to the documentation of this file.
1<?php
2
33
35require_once(__DIR__ . '/../vendor/composer/vendor/autoload.php');
36
38
39//manually init http service
40$container['http.request_factory'] = static fn($c): RequestFactoryImpl => new RequestFactoryImpl();
41
42$container['http.response_factory'] = static fn($c): ResponseFactoryImpl => new ResponseFactoryImpl();
43
44$container['http.cookie_jar_factory'] = static fn($c): CookieJarFactoryImpl => new CookieJarFactoryImpl();
45
46$container['http.response_sender_strategy'] = static fn($c): DefaultResponseSenderStrategy => new DefaultResponseSenderStrategy();
47
48$container['http.duration_factory'] = static fn($c): DurationFactory => new DurationFactory(
50);
51
52$container['http'] = static fn($c): Services => new Services($c);
53
55
60
61//TODO: fix tests and mod_xsendfile which refuses to work
63
64//send response
65$Services->sendResponse();
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Class Services.
Definition: Services.php:38
static run(Services $httpState, CookieFactory $cookieFactory)
$c
Definition: deliver.php:25
$Services
Definition: wac.php:59
$container
@noRector
Definition: wac.php:37
$GLOBALS["DIC"]
Definition: wac.php:54