mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-11 15:28:40 +00:00
fix autoloader
This commit is contained in:
parent
63aa8a7acd
commit
9a34d7f03b
|
|
@ -12,9 +12,9 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace tests;
|
namespace Modules\Profile\tests;
|
||||||
|
|
||||||
\spl_autoload_register('\tests\Autoloader::defaultAutoloader');
|
\spl_autoload_register('\Modules\Profile\tests\Autoloader::defaultAutoloader');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Autoloader class.
|
* Autoloader class.
|
||||||
|
|
@ -80,6 +80,8 @@ final class Autoloader
|
||||||
|
|
||||||
if (\stripos($class, 'Web/Backend') !== false || \stripos($class, 'Web/Api') !== false) {
|
if (\stripos($class, 'Web/Backend') !== false || \stripos($class, 'Web/Api') !== false) {
|
||||||
$class = \str_replace('Web/', 'Install/Application/', $class);
|
$class = \str_replace('Web/', 'Install/Application/', $class);
|
||||||
|
} elseif (\stripos($class, 'Autoloader') !== false) {
|
||||||
|
$class = 'tests/Autoloader.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
$class2 = $class;
|
$class2 = $class;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user