Ignore abstract class or interface, not throw exception

This commit is contained in:
Yu Bing
2016-01-28 11:37:08 +08:00
parent aa8f772a46
commit 3a01e351de
+2 -1
View File
@@ -184,7 +184,8 @@ class ModelsCommand extends Command
} }
if (!$reflectionClass->IsInstantiable()) { if (!$reflectionClass->IsInstantiable()) {
throw new \Exception($name . ' is not instantiable.'); // ignore abstract class or interface
continue;
} }
$model = $this->laravel->make($name); $model = $this->laravel->make($name);