CorexAdminAssets
Corex\Config\AdminUi\CorexAdminAssets · class · Config layer
Conditionally loads the shared shell on CoreX-owned admin screen hooks only.
Public API
Section titled “Public API”__construct(?AdminDateTime $dateTime)
Section titled “__construct(?AdminDateTime $dateTime)”Injected rather than reached for through the facade: this class is built by the container (ConfigServiceProvider), so it has a constructor to inject into, and constitution IV wants the dependency visible here. Facades\AdminDate exists for view code that has no constructor — not for classes that do. Nullable so the enqueue still runs on a site where the binding is somehow absent: a missing date config should cost dates, not the whole admin shell.
register(): void
Section titled “register(): void”bodyClass(string $classes): string
Section titled “bodyClass(string $classes): string”Tags CoreX-owned admin screens with a body class so the shell stylesheet can make the surface full-bleed (remove wp-admin’s outer padding/margins) on those pages only — never on unrelated wp-admin pages or the front end. A pinned Light/Dark appearance is mirrored as corex-appearance-* (like the login) so the body-level token paint of the residual canvas matches the shell instead of following the OS scheme (spec 067 F).
supports(string $hook): bool
Section titled “supports(string $hook): bool”Kept as a delegate rather than deleted: this is the name the rest of the codebase already calls, and the answer now comes from {@see CorexScreens} so there is one regex, not three.