ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
HttpServiceAware.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\FileDelivery;
4
6
23{
24 private static $http;
25
26
36 protected static function http()
37 {
38 if (self::$http === null) {
39 self::$http = $GLOBALS['DIC']['http'];
40 }
41
42 return self::$http;
43 }
44}
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
An exception for terminatinating execution or to throw for unit testing.
Interface GlobalHttpState.
trait HttpServiceAware
Trait HttpServiceAware.
static http()
Fetches the global http state from ILIAS.
$http
Definition: raiseError.php:7