AssetRegistry
Corex\Assets\AssetRegistry · class · Core layer
Maps a base name (e.g. corex, a theme/plugin, or a generated client) to its {@see AssetManager} (spec 062). The asset facades (Style/Script/Image/Picture) resolve a manager through this registry, so one site can enqueue/render framework, theme, plugin, and client assets with the correct base URL/version each. The first base registered is the default; a later registration can claim it.
Public API
Section titled “Public API”register(string $name, AssetManager $manager, bool $asDefault): void
Section titled “register(string $name, AssetManager $manager, bool $asDefault): void”has(string $name): bool
Section titled “has(string $name): bool”manager(?string $name): AssetManager
Section titled “manager(?string $name): AssetManager”The manager for $name, or the default when $name is null.