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:
The registry does NOT:
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:
System guarantees:
Typical consumers:
| Methods | ||
|---|---|---|
public
|
modules(): array<string, Ui5ModuleInterface>
|
# |
public
|
getModule(string $namespace): Ui5ModuleInterface|null
|
# |
public
|
artifacts(): array<string, Ui5ArtifactInterface>
|
# |
public
|
get(string $namespace): Ui5ArtifactInterface|null
|
# |
public
|
settings(string|null $namespace = null): array
|
# |
public
|
pathToNamespace(string $namespace): string
|
# |
public
|
namespaceToPath(string $namespace): string
|
# |
public
|
resolve(string $namespace): string|null
|
# |
public
|
resolveRoots(array<int, string> $namespaces): array<string, string>
|
# |