mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-12 20:02:49 +02:00
Namespace the modules' own classes into XcVm\Module\<Pascal> (Plex, Watch, Tmdb, Ministra) — PlexController/PlexService/PlexCron/..., WatchController/WatchService/..., TmdbController/TmdbCron/TmdbApiService/..., PortalHandler/PortalHelpers (~23 classes). They now resolve through the Phase-2 ModuleLoader PSR-4 resolver. - The bundled third-party tmdb/lib/* (TMDB client, Entities, roles, config) stays GLOBAL, like the other vendored libs; namespaced Tmdb classes reference it via \TMDB etc. - Rewrite the *Module classes' (and any sibling) 'use ShortName;' imports → FQCN; add use to referrers; convert leading-backslash refs. Sub-classes keep the Core/Domain/Cli use imports added during those layers. - Qualify built-ins (\DateTime, \Exception, \PDO, ...) and the global lib classes. - phpstan-baseline.neon regenerated. Verified: php -l clean; PHPStan no errors; PHPUnit 295/295; all 4 modules load and their sub-classes (e.g. XcVm\Module\Plex\PlexService) resolve via the module PSR-4 autoloader; re-sweep clean.