ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FilesystemsAware.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
4 namespace ILIAS\Filesystem;
5 
16 trait FilesystemsAware
17 {
18 
22  private static $filesystems;
23 
29  private static function filesystems() : Filesystems
30  {
31  if (is_null(self::$filesystems)) {
32  global $DIC;
33  self::$filesystems = $DIC->filesystem();
34  }
35 
36  return self::$filesystems;
37  }
38 }
global $DIC
Definition: saml.php:7
static filesystems()
Returns the loaded filesystems.
Class Filesystems.
Definition: Filesystems.php:16