ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
FilesystemsAware.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Filesystem;
22 
30 trait FilesystemsAware
31 {
32  private static Filesystems $filesystems;
33 
37  private static function filesystems(): Filesystems
38  {
39  if (!isset(self::$filesystems)) {
40  global $DIC;
41  self::$filesystems = $DIC->filesystem();
42  }
43 
44  return self::$filesystems;
45  }
46 }
global $DIC
Definition: feed.php:28
static filesystems()
Returns the loaded filesystems.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The Filesystems interface defines the access methods which can be used to fetch the different filesys...
Definition: Filesystems.php:29