mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-15 06:08:40 +00:00
fix autoloader
This commit is contained in:
parent
b0403bf83f
commit
20e41f9e53
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
|
@ -151,12 +151,6 @@ jobs:
|
||||||
repository: Karaka-Management/Karaka
|
repository: Karaka-Management/Karaka
|
||||||
path: Karaka
|
path: Karaka
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: log
|
|
||||||
run: |
|
|
||||||
ls ./
|
|
||||||
ls ./Karaka
|
|
||||||
ls ./Karaka/Modules
|
|
||||||
ls ./Karaka/Modules/Admin
|
|
||||||
- name: Setup PHP, with composer and extensions
|
- name: Setup PHP, with composer and extensions
|
||||||
uses: shivammathur/setup-php@master
|
uses: shivammathur/setup-php@master
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -79,10 +79,7 @@ final class Autoloader
|
||||||
$class = \strtr($class, '_\\', '//');
|
$class = \strtr($class, '_\\', '//');
|
||||||
|
|
||||||
foreach (self::$paths as $path) {
|
foreach (self::$paths as $path) {
|
||||||
$file = $path . $class . '.php';
|
if (\is_file($file = $path . $class . '.php')) {
|
||||||
$file = \str_replace('/Modules/', '/', $file);
|
|
||||||
|
|
||||||
if (\is_file($file)) {
|
|
||||||
include_once $file;
|
include_once $file;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user