Skip to content

Commit 1959fe8

Browse files
committed
update autoload setting
1 parent b0ecb02 commit 1959fe8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/boot.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
spl_autoload_register(function ($class) {
1111
$file = null;
1212

13-
if (0 === strpos($class,'MyLib\StrUtil\Example\\')) {
14-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\StrUtil\Example\\')));
13+
if (0 === strpos($class,'MyLib\SysUtil\Example\\')) {
14+
$path = str_replace('\\', '/', substr($class, strlen('MyLib\SysUtil\Example\\')));
1515
$file = dirname(__DIR__) . "/example/{$path}.php";
16-
} elseif (0 === strpos($class,'MyLib\StrUtil\Test\\')) {
17-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\StrUtil\Test\\')));
16+
} elseif (0 === strpos($class,'MyLib\SysUtil\Test\\')) {
17+
$path = str_replace('\\', '/', substr($class, strlen('MyLib\SysUtil\Test\\')));
1818
$file = __DIR__ . "/{$path}.php";
19-
} elseif (0 === strpos($class,'MyLib\StrUtil\\')) {
20-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\StrUtil\\')));
19+
} elseif (0 === strpos($class,'MyLib\SysUtil\\')) {
20+
$path = str_replace('\\', '/', substr($class, strlen('MyLib\SysUtil\\')));
2121
$file = dirname(__DIR__) . "/src/{$path}.php";
2222
}
2323

0 commit comments

Comments
 (0)