ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
static filesystems()
Returns the loaded filesystems.
$DIC
Definition: xapitoken.php:46
Class Filesystems.
Definition: Filesystems.php:16