mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-15 14:18:41 +00:00
fix autoloader bug
This commit is contained in:
parent
c813822ae5
commit
cd0ff0c478
|
|
@ -33,8 +33,8 @@ final class Autoloader
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private static $paths = [
|
private static $paths = [
|
||||||
__DIR__ . '/../',
|
|
||||||
__DIR__ . '/../Karaka/',
|
__DIR__ . '/../Karaka/',
|
||||||
|
__DIR__ . '/../',
|
||||||
__DIR__ . '/../../',
|
__DIR__ . '/../../',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -59,7 +59,7 @@ final class Autoloader
|
||||||
*/
|
*/
|
||||||
public static function addPath(string $path) : void
|
public static function addPath(string $path) : void
|
||||||
{
|
{
|
||||||
self::$paths[] = $path;
|
self::$paths[] = \rtrim($path, '/\\') . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user