修复Api控制器目录有非PHP文件时的BUG

移除冗余的Layer资源包
pull/70/MERGE
Karson 2018-08-08 22:45:13 +08:00
parent 95c08fb8bd
commit 7413cb3a6a
2 changed files with 1 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class Api extends Command
);
foreach ($files as $name => $file) {
if (!$file->isDir()) {
if (!$file->isDir() && $file->getExtension() == 'php') {
$filePath = $file->getRealPath();
$classes[] = $this->get_class_from_file($filePath);
}

View File

@ -10,7 +10,6 @@
"bootstrap": "^3.3.7",
"font-awesome": "^4.6.1",
"bootstrap-table": "~1.11.0",
"layer": "^3.0",
"jstree": "~3.3.2",
"moment": "~2.15.2",
"plupload": "~2.2.0",