mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 12:39:30 +01:00
fix namespace
This commit is contained in:
parent
7f74afcd6f
commit
1480f0e602
@ -76,7 +76,7 @@ class PluginService
|
|||||||
// Autoload src directory
|
// Autoload src directory
|
||||||
$namespace = $plugin->namespace . '\\';
|
$namespace = $plugin->namespace . '\\';
|
||||||
if (!array_key_exists($namespace, $classLoader->getPrefixesPsr4())) {
|
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
|
// Register service providers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user