mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
boot plugin when class exists
This commit is contained in:
@@ -34,7 +34,9 @@ class Plugin
|
|||||||
$parts = explode('\\', $provider);
|
$parts = explode('\\', $provider);
|
||||||
if ($parts[0] == 'NexusPlugin') {
|
if ($parts[0] == 'NexusPlugin') {
|
||||||
$className = str_replace('ServiceProvider', 'Repository', $provider);
|
$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