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:
1 parent
56f1a8175f
commit
8c5b1555c9
285 files changed
+26
-3600
No files matched your search
@@ -43,16 +43,16 @@ function collect_php_schema_sections(string $themeRoot): array {
|
||||
|
||||
// Primary domain builders.
|
||||
$primary = [
|
||||
'global' => $themeRoot . '/src/AKSRT/Admin/Schema/GlobalSchema.php',
|
||||
'page_display' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaPageDisplay.php',
|
||||
'post_list' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaPostList.php',
|
||||
'permissions' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaPermissions.php',
|
||||
'users' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaUsers.php',
|
||||
'payment' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaPayment.php',
|
||||
'extensions' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaExtensions.php',
|
||||
'tools' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaTools.php',
|
||||
'shop' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaShop.php',
|
||||
'forum' => $themeRoot . '/src/AKSRT/Admin/Schema/SchemaForum.php',
|
||||
'global' => $themeRoot . '/src/Admin/Schema/GlobalSchema.php',
|
||||
'page_display' => $themeRoot . '/src/Admin/Schema/SchemaPageDisplay.php',
|
||||
'post_list' => $themeRoot . '/src/Admin/Schema/SchemaPostList.php',
|
||||
'permissions' => $themeRoot . '/src/Admin/Schema/SchemaPermissions.php',
|
||||
'users' => $themeRoot . '/src/Admin/Schema/SchemaUsers.php',
|
||||
'payment' => $themeRoot . '/src/Admin/Schema/SchemaPayment.php',
|
||||
'extensions' => $themeRoot . '/src/Admin/Schema/SchemaExtensions.php',
|
||||
'tools' => $themeRoot . '/src/Admin/Schema/SchemaTools.php',
|
||||
'shop' => $themeRoot . '/src/Admin/Schema/SchemaShop.php',
|
||||
'forum' => $themeRoot . '/src/Admin/Schema/SchemaForum.php',
|
||||
];
|
||||
|
||||
foreach ($primary as $domain => $file) {
|
||||
@@ -75,7 +75,7 @@ function collect_php_schema_sections(string $themeRoot): array {
|
||||
}
|
||||
|
||||
// Leaf builders that return a single section with 'key' => 'section-id'
|
||||
$leafFiles = array_merge(glob($themeRoot . '/src/AKSRT/Admin/Schema/*.php') ?: [], glob($themeRoot . '/src/AKSRT/Admin/Schema/*/*.php') ?: []);
|
||||
$leafFiles = array_merge(glob($themeRoot . '/src/Admin/Schema/*.php') ?: [], glob($themeRoot . '/src/Admin/Schema/*/*.php') ?: []);
|
||||
foreach ($leafFiles as $file) {
|
||||
$src = file_get_contents($file);
|
||||
if ($src === false) {
|
||||
@@ -169,7 +169,7 @@ function collect_enum_maps(string $themeRoot): array {
|
||||
$php = [];
|
||||
$js = [];
|
||||
|
||||
$phpFiles = array_merge(glob($themeRoot . '/src/AKSRT/Admin/Schema/*.php') ?: [], glob($themeRoot . '/src/AKSRT/Admin/Schema/*/*.php') ?: []);
|
||||
$phpFiles = array_merge(glob($themeRoot . '/src/Admin/Schema/*.php') ?: [], glob($themeRoot . '/src/Admin/Schema/*/*.php') ?: []);
|
||||
foreach ($phpFiles as $file) {
|
||||
$src = file_get_contents($file);
|
||||
if ($src === false) {
|
||||
@@ -239,10 +239,7 @@ function collect_enum_maps(string $themeRoot): array {
|
||||
|
||||
function collect_missing_this_callbacks(string $themeRoot): array {
|
||||
$issues = [];
|
||||
$adminRoot = $themeRoot . '/src/AKSRT/Admin';
|
||||
if (!is_dir($adminRoot)) {
|
||||
$adminRoot = $themeRoot . '/inc/classes/admin';
|
||||
}
|
||||
$adminRoot = $themeRoot . '/src/Admin';
|
||||
$methodIndex = [];
|
||||
|
||||
if (!is_dir($adminRoot)) {
|
||||
|
||||
Reference in new issue
Block a user