chore(psr4): phase 3 (Core leaf) — namespace Core/Logging

Move the Core/Logging layer into XcVm\Core\Logging (Logger, LoggerInterface,
FileLogger, DatabaseLogger, UpdateLogger). Composer PSR-4 now resolves them.

- Add namespace to the 5 logging classes; built-in \Throwable qualified in
  Logger; same-namespace LoggerInterface references unqualified.
- Add 'use XcVm\Core\Logging\...;' to the 16 referencing files (bootstrap,
  web/stream bootstraps, stream entry points, Database, EPG, update command/cron,
  auth, ministra) — call sites unchanged.
- Authenticator::logRecaptcha: drop the now-dead class_exists/method_exists
  guard (Logger is always autoloadable post-Composer) and call Logger::log
  directly.

Procedural Core/Error + Core/Config constants files (ErrorCodes/ErrorHandler/
AppConfig/Binaries/Paths — no classes) intentionally left global per plan.

Verified: php -l clean; PHPStan no errors; PHPUnit 295/295.
This commit is contained in:
Divarion-D
2026-06-24 20:33:55 +03:00
parent 1bd9438820
commit 15750f314c
21 changed files with 32 additions and 9 deletions
@@ -1,5 +1,6 @@
<?php
use XcVm\Core\Logging\Logger;
/**
* WebApiBootstrap — bootstrap для web API endpoint'ов
*