mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
boot plugin when class exists
This commit is contained in:
@@ -34,7 +34,9 @@ class Plugin
|
||||
$parts = explode('\\', $provider);
|
||||
if ($parts[0] == 'NexusPlugin') {
|
||||
$className = str_replace('ServiceProvider', 'Repository', $provider);
|
||||
call_user_func([new $className, 'boot']);
|
||||
if (class_exists($className)) {
|
||||
call_user_func([new $className, 'boot']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user