-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrapper.php
More file actions
26 lines (20 loc) · 793 Bytes
/
Copy pathwrapper.php
File metadata and controls
26 lines (20 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
declare(strict_types=1);
/**
* Wizdam JatsEngine Wrapper
*
* Entry point untuk aplikasi legacy ScholarWizdam
* Memuat autoloader PSR-4 dan menyediakan akses ke JatsEngine
*/
// 1. Muat Autoloader PSR-4
$autoloaderPath = __DIR__ . '/autoloader.php';
if (!file_exists($autoloaderPath)) {
error_log('Wizdam JatsEngine Critical Error: autoloader.php is missing.');
throw new RuntimeException('Wizdam JatsEngine Error: Component autoloader.php is missing.');
}
require_once $autoloaderPath;
// 2. Class alias (opsional) untuk kompatibilitas backward
// Uncomment jika diperlukan shortcut global tanpa namespace
// if (class_exists('Wizdam\\JatsEngine\\JatsEngine') && !class_exists('JatsEngine')) {
// class_alias('Wizdam\\JatsEngine\\JatsEngine', 'JatsEngine');
// }