Check if class/interface exists

Display error, but continue if not.
This commit is contained in:
Barry
2013-03-24 15:59:41 +01:00
parent 51a40659d6
commit 9a079e236d
@@ -104,6 +104,10 @@ class GeneratorCommand extends Command {
}else{
$root = $facade;
}
if(!class_exists($root) && !interface_exists($root)){
$this->error("Class $root is not found.");
continue;
}
if(strpos($alias, '\\') !== false){
$parts = explode('\\', $alias);