mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
修正一处错误
This commit is contained in:
@@ -194,8 +194,8 @@ class Loader
|
|||||||
foreach ($autoload['classmap'] as $val) {
|
foreach ($autoload['classmap'] as $val) {
|
||||||
if (strpos($val, '/')) {
|
if (strpos($val, '/')) {
|
||||||
// 扫描目录
|
// 扫描目录
|
||||||
$files = scandir($package . $val);
|
$items = scandir($package . $val);
|
||||||
foreach ($files as $file) {
|
foreach ($items as $file) {
|
||||||
if ('php' == pathinfo($file, PATHINFO_EXTENSION)) {
|
if ('php' == pathinfo($file, PATHINFO_EXTENSION)) {
|
||||||
$file = realpath($package . $val . DS . $file);
|
$file = realpath($package . $val . DS . $file);
|
||||||
$info = self::parsePhpNamespace($file);
|
$info = self::parsePhpNamespace($file);
|
||||||
|
|||||||
Reference in New Issue
Block a user