ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
wac.php
Go to the documentation of this file.
1
<?php
2
24
use
ILIAS\DI\Container
;
25
use
ILIAS\HTTP\Request\RequestFactoryImpl
;
26
use
ILIAS\HTTP\Response\ResponseFactoryImpl
;
27
use
ILIAS\HTTP\Cookies\CookieJarFactoryImpl
;
28
use
ILIAS\HTTP\Response\Sender\DefaultResponseSenderStrategy
;
29
use
ILIAS\HTTP\Duration\DurationFactory
;
30
use
ILIAS\HTTP\Duration\Increment\IncrementFactory
;
31
use
ILIAS\HTTP\Services
;
32
use
ILIAS\HTTP\Cookies\CookieFactoryImpl
;
33
35
require_once(__DIR__ .
'/../vendor/composer/vendor/autoload.php'
);
36
37
$container
=
new
Container
();
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
(
49
new
IncrementFactory
()
50
);
51
52
$container
[
'http'
] =
static
fn(
$c
):
Services
=> new
Services
(
$c
);
53
54
$GLOBALS
[
"DIC"
] =
$container
;
55
59
$Services
=
$container
[
'http'
];
60
61
//TODO: fix tests and mod_xsendfile which refuses to work
62
ilWebAccessCheckerDelivery::run
(
$Services
,
new
CookieFactoryImpl
());
63
64
//send response
65
$Services
->sendResponse();
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:36
ILIAS\HTTP\Cookies\CookieFactoryImpl
Definition:
CookieFactoryImpl.php:34
ILIAS\HTTP\Cookies\CookieJarFactoryImpl
Definition:
CookieJarFactoryImpl.php:35
ILIAS\HTTP\Duration\DurationFactory
Definition:
DurationFactory.php:29
ILIAS\HTTP\Duration\Increment\IncrementFactory
Definition:
IncrementFactory.php:27
ILIAS\HTTP\Request\RequestFactoryImpl
Definition:
RequestFactoryImpl.php:39
ILIAS\HTTP\Response\ResponseFactoryImpl
Definition:
ResponseFactoryImpl.php:38
ILIAS\HTTP\Response\Sender\DefaultResponseSenderStrategy
Class DefaultResponseSenderStrategy.
Definition:
DefaultResponseSenderStrategy.php:32
ILIAS\HTTP\Services
Class Services.
Definition:
Services.php:38
ilWebAccessCheckerDelivery\run
static run(Services $httpState, CookieFactory $cookieFactory)
Definition:
class.ilWebAccessCheckerDelivery.php:37
$c
$c
Definition:
deliver.php:25
$Services
$Services
Definition:
wac.php:59
$container
$container
@noRector
Definition:
wac.php:37
$GLOBALS
$GLOBALS["DIC"]
Definition:
wac.php:54
components
ILIAS
WebAccessChecker
resources
wac.php
Generated on Sat Oct 18 2025 23:04:59 for ILIAS by
1.9.4 (using
Doxyfile
)