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