This commit is contained in:
2021-09-18 16:54:39 +08:00
parent a6f056b8c8
commit 8f3b856bd6
63 changed files with 232 additions and 1585 deletions
+1 -6
View File
@@ -5,7 +5,6 @@ namespace Server;
use Annotation\Inject;
use Closure;
use Exception;
use Http\Route\Router;
use Kiri\Abstracts\Config;
use Kiri\Di\ContainerInterface;
use Kiri\Exception\ConfigException;
@@ -169,12 +168,8 @@ class ServerManager
$customProcess = Kiri::createObject($customProcess, [$server]);
}
$namespace = array_filter(explode('\\', Router::getNamespace()));
$namespace = APP_PATH . implode('/', $namespace);
$name = $customProcess->getProcessName($soloProcess);
scan_directory(directory('app'), 'App', [$namespace]);
scan_directory(directory('app'), 'App');
$system = sprintf('%s.process[%d]', Config::get('id', 'system-service'), $soloProcess->pid);
if (Kiri::getPlatform()->isLinux()) {