*/
private array $folders = [];
public function __construct(IRootFolder $rootFolder,
SystemConfig $systemConfig) {
$this->rootFolder = $rootFolder;
$this->config = $systemConfig;
}
public function get(string $appId): IAppData {
if (!isset($this->folders[$appId])) {
$this->folders[$appId] = new AppData($this->rootFolder, $this->config, $appId);
}
return $this->folders[$appId];
}
}
stable
blob: 67e31603d1b1c86df82974f1c85d70c9075eb43f (
plain)