Skip to content

Commit 3e90c6f

Browse files
committed
update
1 parent 2f26b71 commit 3e90c6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Loader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
class Loader
55
{
66
public static $vendorDir = 'vendor';
7+
public static $libDir = 'lib';
78

89
protected static $vendorPath = null;
910
protected static $paths = null;
@@ -74,6 +75,9 @@ public static function loadCore($class)
7475
}
7576
if (strpos($class, static::$nsChar) === false) {
7677
$fileName = dirname(__FILE__) . DIRECTORY_SEPARATOR . $class . '.php';
78+
if (!file_exists($fileName)) {
79+
$fileName = static::$libDir . DIRECTORY_SEPARATOR . $class . '.php';
80+
}
7781
if (file_exists($fileName)) {
7882
static::$files[] = $fileName;
7983
include $fileName;

0 commit comments

Comments
 (0)