diff --git a/nexus/Plugin/Plugin.php b/nexus/Plugin/Plugin.php index 9c244a7b..211396c1 100644 --- a/nexus/Plugin/Plugin.php +++ b/nexus/Plugin/Plugin.php @@ -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']); + } } } }