mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-28 03:03:18 +01:00
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:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use XcVm\Core\Logging\Logger;
|
||||
/**
|
||||
* WebApiBootstrap — bootstrap для web API endpoint'ов
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user