fix namespace

This commit is contained in:
Boy132 2025-11-06 13:18:08 +01:00
parent 7f74afcd6f
commit 1480f0e602

View File

@ -76,7 +76,7 @@ class PluginService
// Autoload src directory
$namespace = $plugin->namespace . '\\';
if (!array_key_exists($namespace, $classLoader->getPrefixesPsr4())) {
$classLoader->setPsr4($namespace . '\\', plugin_path($plugin->id, 'src/'));
$classLoader->setPsr4($namespace, plugin_path($plugin->id, 'src/'));
}
// Register service providers