mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-11 08:48:40 +00:00
fix autoloader bug
This commit is contained in:
parent
c52c636309
commit
ba93dbcf70
|
|
@ -1,4 +1,6 @@
|
||||||
<?php declare(strict_types=1);
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
if (\is_file(__DIR__ . '/../../tests/Autoloader.php')) {
|
if (\is_file(__DIR__ . '/../../tests/Autoloader.php')) {
|
||||||
require_once __DIR__ . '/../../tests/Autoloader.php';
|
require_once __DIR__ . '/../../tests/Autoloader.php';
|
||||||
|
|
@ -11,11 +13,12 @@ if (\is_file(__DIR__ . '/../../tests/Autoloader.php')) {
|
||||||
use tests\Autoloader;
|
use tests\Autoloader;
|
||||||
|
|
||||||
if (\is_dir(__DIR__ . '/../../Karaka')) {
|
if (\is_dir(__DIR__ . '/../../Karaka')) {
|
||||||
Autoloader::addPath(__DIR__ . '/../../Karaka/Resources');
|
Autoloader::addPath(__DIR__ . '/../../Karaka/');
|
||||||
Autoloader::addPath(__DIR__ . '/../../Karaka/Resources/tcpdf');
|
Autoloader::addPath(__DIR__ . '/../../Karaka/Resources/');
|
||||||
Autoloader::addPath(__DIR__ . '/../../Karaka/Resources/Stripe');
|
Autoloader::addPath(__DIR__ . '/../../Karaka/Resources/tcpdf/');
|
||||||
|
Autoloader::addPath(__DIR__ . '/../../Karaka/Resources/Stripe/');
|
||||||
} else {
|
} else {
|
||||||
Autoloader::addPath(__DIR__ . '/../../Resources');
|
Autoloader::addPath(__DIR__ . '/../../Resources/');
|
||||||
Autoloader::addPath(__DIR__ . '/../../Resources/tcpdf');
|
Autoloader::addPath(__DIR__ . '/../../Resources/tcpdf/');
|
||||||
Autoloader::addPath(__DIR__ . '/../../Resources/Stripe');
|
Autoloader::addPath(__DIR__ . '/../../Resources/Stripe/');
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user