mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +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{
|
}else{
|
||||||
$root = $facade;
|
$root = $facade;
|
||||||
}
|
}
|
||||||
|
if(!class_exists($root) && !interface_exists($root)){
|
||||||
|
$this->error("Class $root is not found.");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(strpos($alias, '\\') !== false){
|
if(strpos($alias, '\\') !== false){
|
||||||
$parts = explode('\\', $alias);
|
$parts = explode('\\', $alias);
|
||||||
|
|||||||
Reference in New Issue
Block a user