ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
wac.php
Go to the documentation of this file.
1<?php
9
10chdir('../../');
11require_once('./Services/WebAccessChecker/classes/class.ilWebAccessCheckerDelivery.php');
12
13$container = new \ILIAS\DI\Container();
14
15//manually init http service
16$container['http.request_factory'] = function ($c) {
17 return new \ILIAS\HTTP\Request\RequestFactoryImpl();
18};
19
20$container['http.response_factory'] = function ($c) {
21 return new \ILIAS\HTTP\Response\ResponseFactoryImpl();
22};
23
24$container['http.cookie_jar_factory'] = function ($c) {
25 return new \ILIAS\HTTP\Cookies\CookieJarFactoryImpl();
26};
27
28$container['http.response_sender_strategy'] = function ($c) {
29 return new \ILIAS\HTTP\Response\Sender\DefaultResponseSenderStrategy();
30};
31
32$container['http'] = function ($c) {
33 return new \ILIAS\DI\HTTPServices(
34 $c['http.response_sender_strategy'],
35 $c['http.cookie_jar_factory'],
36 $c['http.request_factory'],
37 $c['http.response_factory']
38 );
39};
40
42
47
48//TODO: fix tests and mod_xsendfile which refuses to work
50
51//send response
52$globalHttpState->sendResponse();
An exception for terminatinating execution or to throw for unit testing.
static run(GlobalHttpState $httpState, CookieFactory $cookieFactory)
$globalHttpState
Definition: wac.php:46
$container
Definition: wac.php:13
$GLOBALS["DIC"]
Definition: wac.php:41