ComponentConfigDefinition
final class ComponentConfigDefinition implements ConfigDefinitionInterface (View source)
Collects component registrations contributed by an application or module.
Later definitions may replace a registration with the same name during resolution.
Methods
Starts an empty component-registration definition.
Identifies the configuration section handled by this definition.
Registers a component class under the supplied application-facing name.
Registers all supplied component mappings while preserving this definition's fluent API.
Exposes the registrations for framework configuration resolution.
Details
moduleKey
static string
moduleKey()
Identifies the configuration section handled by this definition.
component
ComponentConfigDefinition
component(string $name, string $componentClass)
Registers a component class under the supplied application-facing name.
components
ComponentConfigDefinition
components(array $components)
Registers all supplied component mappings while preserving this definition's fluent API.
toArray
array
toArray()
Exposes the registrations for framework configuration resolution.