diff --git a/composer.json b/composer.json index 333d9e3..df25420 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "topthink/think-multi-app", - "description": "thinkphp6 multi app support", + "description": "thinkphp multi app support", "license": "Apache-2.0", "authors": [ { diff --git a/src/MultiApp.php b/src/MultiApp.php index b0ac260..2444609 100644 --- a/src/MultiApp.php +++ b/src/MultiApp.php @@ -207,6 +207,15 @@ protected function setApp(string $appName): void } } + /** + * 设置应用目录 + * @param string $appPath + */ + public function setAppPath(string $appPath): void + { + $this->path = $appPath; + } + /** * 加载应用文件 * @param string $appName 应用名