api: gateway, ingame 모두 가능하도록 변경

This commit is contained in:
2021-09-12 15:05:21 +09:00
parent 98567c3509
commit 6ca42cbf62
5 changed files with 112 additions and 86 deletions
+2 -2
View File
@@ -377,9 +377,9 @@ function getAPIExecutorClass($path){
throw new \InvalidArgumentException("{$path}는 올바른 API 경로가 아님");
}
function buildAPIExecutorClass(string $type, array $args):\sammo\BaseAPI{
function buildAPIExecutorClass(string $type, string $rootPath, array $args):\sammo\BaseAPI{
$class = getAPIExecutorClass($type);
return new $class($args);
return new $class($rootPath, $args);
}
function getWarUnitTriggerClass(string $type){