refactor: flatten src/AKSRT → src (drop theme-identifier dir)
Move all domain folders from src/AKSRT/{Domain} to src/{Domain}; remap
Composer PSR-4 "AKSRT\\": "src/"; update audit script + README + ADR
paths; remove dead tools/build-psr4-map.php (scanned deleted inc/classes).
This commit is contained in:
+2
-2
@@ -63,7 +63,7 @@ if (!function_exists('aksrt_get_setting')) {
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 加载 Composer 依赖(第三方库 + 主题 PSR-4:AKSRT\ → src/AKSRT/)
|
||||
// 加载 Composer 依赖(第三方库 + 主题 PSR-4:AKSRT\ → src/)
|
||||
// ============================================================
|
||||
$composer_autoload = AKSRT_DIR . '/vendor/autoload.php';
|
||||
if (!file_exists($composer_autoload)) {
|
||||
@@ -75,7 +75,7 @@ if (!file_exists($composer_autoload)) {
|
||||
}
|
||||
require_once $composer_autoload;
|
||||
|
||||
// Theme classes live under src/AKSRT/ and only load via Composer PSR-4.
|
||||
// Theme classes live under src/ and only load via Composer PSR-4.
|
||||
// Stale vendor/ (e.g. install before composer.json gained "AKSRT\\") leaves
|
||||
// autoload_psr4 without AKSRT\ and fatals on the first DomainModel reference.
|
||||
if (!class_exists(\AKSRT\Core\DomainModel::class, true)) {
|
||||
|
||||
Reference in New Issue
Block a user