mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-27 11:03:28 +01:00
Core/Http/RequestGuard.php was a procedural prelude, called only from WebApiBootstrap::init(), that duplicated logic already living as proper BootStageInterface classes used by every other BootContext: FloodProtectionStage and HostVerificationStage. Reuse those directly; add WebApiLoggerStage for the one real behavioral difference (WebApi's PHP_ERRORS also honours the runtime `debug_show_errors` setting, not just DEV_MODE like the shared ConstantsStage). RequestGuard.php is deleted — it had exactly one caller. Also removes two redundant manual `require_once` of already-autoloadable classes in DatabaseLogger/FileLogger (same namespace as LoggerInterface, loaded automatically on the `implements` reference). Adds a BootStageTest case for WebApiLoggerStage, restoring the previous error/exception handlers afterward since Logger::init() registers global ones as a side effect.