We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
components/src/mine-core/src/Mine.php
Line 45 in 3df0b91
可以尝试使用 DirectoryIterator 实现。
$modules = []; foreach (new \DirectoryIterator(self::getAppPath()) as $directory) { if ($directory->isDot()) { continue; } if ($directory->isDir()) { $modules[] = $directory->getPathname(); } }
The text was updated successfully, but these errors were encountered:
2.0 新版已经不扫描了吧,如果要还扫描。就自己继承一下这个类。然后去 setting 里面改成你的类名
Sorry, something went wrong.
目前 MineAdmin 打包为 Phar,再打包为二进制包运行,只需要修改这两处代码。
另外,我对 HttpCoreMiddleware 进行了部分修改,可以支持将编译好的前端代码打包到 Phar 包里面,即可实现一个二进制文件+.env 配置文件即可运行整个项目。对外看来就是一个完整的应用文件,不能直接看不出是 PHP 写的。
对于 HttpCoreMiddleware 的修改主要是因为没有抛出 NotFount 异常,在这里直接 JSON 返回了。
如果有需要,我可以提交 PR。
目前还有一个问题,就是 MineAdmin 打包 Phar 有点慢(应该说是 Hyperf 打包慢),后续有空还可以继续优化。
Hi, @zoujingli. I'm Dosu, and I'm helping the components team manage their backlog. I'm marking this issue as stale.
Issue Summary:
DirectoryIterator
Next Steps:
Thank you for your understanding and contribution!
No branches or pull requests
components/src/mine-core/src/Mine.php
Line 45 in 3df0b91
可以尝试使用 DirectoryIterator 实现。
The text was updated successfully, but these errors were encountered: