Interface LaravelUi5\Core\Ui5\Contracts\Ui5RegistryInterface

Interface Ui5RegistryInterface

Build-time registry and introspection contract for the LaravelUi5 Core.

The Ui5Registry is the authoritative source of truth for all UI5-related artifacts declared in a Laravel application. It is responsible for discovering, instantiating, and indexing UI5 modules and artifacts based on configuration and PHP attributes.

The registry operates exclusively at build time (or during application bootstrapping) and is intentionally reflection-heavy. Its primary purpose is to provide normalized, deterministic metadata for:

  • runtime cache generation
  • manifest and resource root assembly
  • documentation and inspection tooling

The registry does NOT:

  • perform authorization
  • interpret semantic meaning
  • resolve user intents
  • make runtime decisions

In Core 2.0, the registry is strictly technical and URI-oriented. Semantic concerns (navigation meaning, intent declaration, authorization) are explicitly handled by the SDK layer.

Responsibilities:

  • Discover UI5 modules from configuration
  • Discover UI5 artifacts via module registration
  • Guarantee uniqueness of module slugs and artifact namespaces
  • Provide deterministic lookup structures for cache generation

System guarantees:

  • Each module has exactly one unique slug
  • Each artifact has a globally unique namespace
  • Artifact type (app, lib, action, report, …) is stable and deterministic

Typical consumers:

  • ui5:cache command
  • build-time manifest generators
  • tooling and diagnostics
Methods