ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
HttpServiceAware.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\FileDelivery;
22
39{
43 private static $http;
44
45
55 protected static function http()
56 {
57 if (self::$http === null) {
58 self::$http = $GLOBALS['DIC']['http'];
59 }
60
61 return self::$http;
62 }
63}
trait HttpServiceAware
Trait HttpServiceAware.
$http
Definition: deliver.php:30
static http()
Fetches the global http state from ILIAS.
$GLOBALS["DIC"]
Definition: wac.php:54