fix: 감춰진 KVStorage의 initializer를 사용하는 코드 수정

This commit is contained in:
2022-05-08 20:20:09 +09:00
parent 2b4de68f0a
commit 94bfd79afa
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ $result = [];
$server = []; $server = [];
$storage = new \sammo\KVStorage(RootDB::db(), 'git_path'); $storage = KVStorage::getStorage(RootDB::db(), 'git_path');
$serverGitPath = $storage->getAll(); $serverGitPath = $storage->getAll();
$rootServer = Util::array_last(ServConfig::getServerList())->getShortName(); $rootServer = Util::array_last(ServConfig::getServerList())->getShortName();
@@ -81,7 +81,7 @@ foreach (ServConfig::getServerList() as $setting) {
'lastGitPath' => ($serverGitPath[$serverDir][0])??($serverDir == $rootServer?'devel':'origin/devel') 'lastGitPath' => ($serverGitPath[$serverDir][0])??($serverDir == $rootServer?'devel':'origin/devel')
]; ];
$server[] = $state; $server[] = $state;
} }
Json::die([ Json::die([
'acl' => $session->acl, 'acl' => $session->acl,
+1 -1
View File
@@ -178,7 +178,7 @@ $session = Session::requireLogin(null)->setReadOnly();
$request = $_POST + $_GET; $request = $_POST + $_GET;
$rootDB = RootDB::db(); $rootDB = RootDB::db();
$storage = new \sammo\KVStorage($rootDB, 'git_path'); $storage = KVStorage::getStorage($rootDB, 'git_path');
$tmpFile = 'd_log/arc.zip'; $tmpFile = 'd_log/arc.zip';
$v = new Validator($request); $v = new Validator($request);