mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进optimize::schema指令
This commit is contained in:
@@ -42,7 +42,7 @@ class Schema extends Command
|
|||||||
$list = scandir(APP_PATH . $module . DS . 'model');
|
$list = scandir(APP_PATH . $module . DS . 'model');
|
||||||
$app = App::$namespace;
|
$app = App::$namespace;
|
||||||
foreach ($list as $file) {
|
foreach ($list as $file) {
|
||||||
if ('.' == $file || '..' == $file) {
|
if (0 === strpos($file, '.')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$class = '\\' . $app . '\\' . $module . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);
|
$class = '\\' . $app . '\\' . $module . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);
|
||||||
@@ -63,7 +63,7 @@ class Schema extends Command
|
|||||||
$app = App::$namespace;
|
$app = App::$namespace;
|
||||||
$list = scandir(APP_PATH . 'model');
|
$list = scandir(APP_PATH . 'model');
|
||||||
foreach ($list as $file) {
|
foreach ($list as $file) {
|
||||||
if ('.' == $file || '..' == $file) {
|
if (0 === strpos($file, '.')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$class = '\\' . $app . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);
|
$class = '\\' . $app . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);
|
||||||
|
|||||||
Reference in New Issue
Block a user