Skip to content

Commit

Permalink
增加setAppPath方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Mar 20, 2023
1 parent 07b9183 commit 6bec321
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "topthink/think-multi-app",
"description": "thinkphp6 multi app support",
"description": "thinkphp multi app support",
"license": "Apache-2.0",
"authors": [
{
Expand Down
9 changes: 9 additions & 0 deletions src/MultiApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 应用名
Expand Down

0 comments on commit 6bec321

Please # to comment.