YamlDefinitionClassMap
final class YamlDefinitionClassMap (View source)
Maps YAML aliases and module keys to typed definition classes accepted by the configuration loader.
Methods
Creates the canonical map of framework-supported YAML definition types.
registerMany(array $classesByAlias)
Adds several alias mappings and returns this map for composition.
register(string $alias, string $definitionClass)
Adds one definition class under its YAML alias and declared module key.
resolve(string|null $alias, string|null $module)
Prefers a module-key match and falls back to the YAML alias when no module matches.
string|null
Details
withDefaults
static YamlDefinitionClassMap
withDefaults()
Creates the canonical map of framework-supported YAML definition types.
registerMany
YamlDefinitionClassMap
registerMany(array $classesByAlias)
Adds several alias mappings and returns this map for composition.
register
YamlDefinitionClassMap
register(string $alias, string $definitionClass)
Adds one definition class under its YAML alias and declared module key.
resolve
string|null
resolve(string|null $alias, string|null $module)
Prefers a module-key match and falls back to the YAML alias when no module matches.