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

create()

Starts an empty component-registration definition.

static string

Identifies the configuration section handled by this definition.

string
component(string $name, string $componentClass)

Registers a component class under the supplied application-facing name.

components(array $components)

Registers all supplied component mappings while preserving this definition's fluent API.

array

Exposes the registrations for framework configuration resolution.

array

Details

create

Starts an empty component-registration definition.

moduleKey

static string moduleKey()

Identifies the configuration section handled by this definition.

Return Value

string

component

ComponentConfigDefinition component(string $name, string $componentClass)

Registers a component class under the supplied application-facing name.

Parameters

string $name
string $componentClass

Return Value

ComponentConfigDefinition

components

ComponentConfigDefinition components(array $components)

Registers all supplied component mappings while preserving this definition's fluent API.

Parameters

array $components

Return Value

ComponentConfigDefinition

toArray

array toArray()

Exposes the registrations for framework configuration resolution.

Return Value

array