mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
Check if class/interface exists
Display error, but continue if not.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user