Skip to content
Corex

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.

register(string $name, AssetManager $manager, bool $asDefault): void

Section titled “register(string $name, AssetManager $manager, bool $asDefault): void”

The manager for $name, or the default when $name is null.