ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HttpServiceAware.php
Go to the documentation of this file.
1<?php
2// declare(strict_types=1);
3
5
7
24{
25 private static $http;
26
27
37 protected static function http()
38 {
39 if (self::$http === null) {
40 self::$http = $GLOBALS['DIC']['http'];
41 }
42
43 return self::$http;
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Interface GlobalHttpState.
trait HttpServiceAware
Trait HttpServiceAware.
static http()
Fetches the global http state from ILIAS.
$http
Definition: raiseError.php:7