ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
HttpServiceAware.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\FileDelivery;
22 
24 
40 trait HttpServiceAware
41 {
45  private static $http;
46 
47 
57  protected static function http()
58  {
59  if (self::$http === null) {
60  self::$http = $GLOBALS['DIC']['http'];
61  }
62 
63  return self::$http;
64  }
65 }
$http
Definition: deliver.php:14
static http()
Fetches the global http state from ILIAS.
$GLOBALS["DIC"]
Definition: wac.php:30