Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没太明白 这个 setAppPath 的用法 #40

Open
ouyanglingyun opened this issue Mar 20, 2023 · 2 comments
Open

没太明白 这个 setAppPath 的用法 #40

ouyanglingyun opened this issue Mar 20, 2023 · 2 comments

Comments

@ouyanglingyun
Copy link

          增加了setAppPath方法

Originally posted by @liu21st in #39 (comment)

没太明白这个的用法
或许把 setApp 方法中的

        $appPath = $this->path ?: $this->app->getBasePath() . $appName . DIRECTORY_SEPARATOR;

改为

        $appPath = $this->app->http->getPath() ?: $this->app->getBasePath() . $appName . DIRECTORY_SEPARATOR;

就好

@ouyanglingyun ouyanglingyun changed the title 增加了setAppPath方法 没太明白 这个 setAppPath 的用法 Mar 20, 2023
@liu21st
Copy link
Member

liu21st commented Mar 20, 2023

都一样 一个是直接修改Http类的path 一个是修改当前类的path

@ouyanglingyun
Copy link
Author

setAppPath 需要通过闭包参数暴露出来吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants