diff --git a/application/admin/command/Api.php b/application/admin/command/Api.php index 9079558..2eb2b24 100644 --- a/application/admin/command/Api.php +++ b/application/admin/command/Api.php @@ -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); } diff --git a/bower.json b/bower.json index 562517c..fa07ab5 100755 --- a/bower.json +++ b/bower.json @@ -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",