ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
InitHttpServices Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for InitHttpServices:

Public Member Functions

 init (\ILIAS\DI\Container $container)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Responsible for loading the UI Framework into the dependency injection container of ILIAS

Definition at line 21 of file InitHttpServices.php.

Member Function Documentation

◆ init()

InitHttpServices::init ( \ILIAS\DI\Container  $container)

Definition at line 23 of file InitHttpServices.php.

References $c.

23  : 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  }
$c
Definition: cli.php:38
Class ChatMainBarProvider .
$container
Definition: wac.php:14

The documentation for this class was generated from the following file: