Files
2026-11-11 14:22:02 +08:00

93 lines
6.5 KiB
PHP

<?php
require __DIR__.'/bootstrap.php';
$root = 'C:/zyt/identity-admin/.test-runtime/deploy-original-overlay/';
$class = 'app\\adminapi\\controller\\auth\\RoleController';
$expected = $root . 'app/adminapi/controller/auth/RoleController.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\controller\\identity\\HospitalSsoController';
$expected = $root . 'app/adminapi/controller/identity/HospitalSsoController.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\controller\\identity\\SessionController';
$expected = $root . 'app/adminapi/controller/identity/SessionController.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\http\\middleware\\AuthMiddleware';
$expected = $root . 'app/adminapi/http/middleware/AuthMiddleware.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\listener\\OperationLog';
$expected = $root . 'app/adminapi/listener/OperationLog.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\logic\\auth\\AdminLogic';
$expected = $root . 'app/adminapi/logic/auth/AdminLogic.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\logic\\auth\\AuthLogic';
$expected = $root . 'app/adminapi/logic/auth/AuthLogic.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\logic\\auth\\MenuLogic';
$expected = $root . 'app/adminapi/logic/auth/MenuLogic.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\logic\\auth\\RoleLogic';
$expected = $root . 'app/adminapi/logic/auth/RoleLogic.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\logic\\LoginLogic';
$expected = $root . 'app/adminapi/logic/LoginLogic.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\service\\AdminAccessSyncService';
$expected = $root . 'app/adminapi/service/AdminAccessSyncService.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\service\\AdminTokenService';
$expected = $root . 'app/adminapi/service/AdminTokenService.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\service\\CoreAccountPermissionPolicy';
$expected = $root . 'app/adminapi/service/CoreAccountPermissionPolicy.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\service\\IdentityHospitalSsoService';
$expected = $root . 'app/adminapi/service/IdentityHospitalSsoService.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\service\\IdentityHospitalSsoTicketStore';
$expected = $root . 'app/adminapi/service/IdentityHospitalSsoTicketStore.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\service\\IdentitySessionService';
$expected = $root . 'app/adminapi/service/IdentitySessionService.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\adminapi\\validate\\LoginValidate';
$expected = $root . 'app/adminapi/validate/LoginValidate.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\common\\cache\\AdminAuthCache';
$expected = $root . 'app/common/cache/AdminAuthCache.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\common\\cache\\AdminTokenCache';
$expected = $root . 'app/common/cache/AdminTokenCache.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\common\\enum\\AdminTerminalEnum';
$expected = $root . 'app/common/enum/AdminTerminalEnum.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\common\\service\\ActiveMenuPermissions';
$expected = $root . 'app/common/service/ActiveMenuPermissions.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
$class = 'app\\mcp\\service\\ConsoleService';
$expected = $root . 'app/mcp/service/ConsoleService.php';
$actual = (new ReflectionClass($class))->getFileName();
if (realpath($actual) !== realpath($expected)) { throw new RuntimeException('Overlay loader mismatch: ' . $class); }
echo "PASS overlay loader provenance: all 22 classes resolve to staged files.\n";