mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Enhance Service locator
This commit is contained in:
@@ -17,19 +17,9 @@ use utils;
|
||||
*/
|
||||
class DataModelDependantCache
|
||||
{
|
||||
private static DataModelDependantCache $oInstance;
|
||||
|
||||
public static function GetInstance(): DataModelDependantCache
|
||||
{
|
||||
if (!isset(self::$oInstance)) {
|
||||
self::$oInstance = new DataModelDependantCache();
|
||||
}
|
||||
return self::$oInstance;
|
||||
}
|
||||
|
||||
private ?string $sStorageRootDir; // Nullable for test purposes
|
||||
|
||||
private function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
$this->sStorageRootDir = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user