From 6bec321225609a39a66e0a0dcf52011985d4fa36 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 20 Mar 2023 13:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0setAppPath=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- src/MultiApp.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 应用名