ILIAS  release_8 Revision v8.24
InitHttpServices.php
Go to the documentation of this file.
1<?php
2
22{
23 public function init(\ILIAS\DI\Container $container): void
24 {
25 $container['http.request_factory'] = function ($c) {
26 return new \ILIAS\HTTP\Request\RequestFactoryImpl();
27 };
28
29 $container['http.response_factory'] = function ($c) {
30 return new \ILIAS\HTTP\Response\ResponseFactoryImpl();
31 };
32
33 $container['http.cookie_jar_factory'] = function ($c) {
34 return new \ILIAS\HTTP\Cookies\CookieJarFactoryImpl();
35 };
36
37 $container['http.response_sender_strategy'] = function ($c) {
38 return new \ILIAS\HTTP\Response\Sender\DefaultResponseSenderStrategy();
39 };
40
41 $container['http.duration_factory'] = function ($c) {
42 return new \ILIAS\HTTP\Duration\DurationFactory(
43 new \ILIAS\HTTP\Duration\Increment\IncrementFactory()
44 );
45 };
46
47 $container['http.security'] = function ($c) {
48 throw new OutOfBoundsException('TODO');
49 };
50
51 $container['http'] = function ($c) {
52 return new \ILIAS\HTTP\Services($c);
53 };
54 }
55}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
init(\ILIAS\DI\Container $container)
$c
Definition: cli.php:38
Class HTTPServicesTest.
Class ChatMainBarProvider \MainMenu\Provider.
$container
@noRector
Definition: wac.php:14