final class CommandsConfigDefinition extends AbstractConfigDefinition (View source)

Builds the raw command configuration accepted by the configuration pipeline.

Properties

protected mixed[] $data from  AbstractConfigDefinition

Methods

set(string $path, mixed $value)

Replaces one configuration value at a dot-separated path.

append(string $path, mixed $value)

Appends one configuration value at a dot-separated list path.

create()

Creates an empty command configuration definition.

static string

Returns the module key used to select the commands configuration payload.

string
command(string $command)

Appends one legacy command class entry to the current definition.

commands(array $commands)

Replaces the current entries with command classes or metadata mappings.

Details

toArray

No description

Return Value

array

fromArrayData

final static AbstractConfigDefinition fromArrayData(array $data)

No description

Parameters

array $data

Return Value

AbstractConfigDefinition

set

protected AbstractConfigDefinition set(string $path, mixed $value)

Replaces one configuration value at a dot-separated path.

Parameters

string $path
mixed $value

Return Value

AbstractConfigDefinition

append

protected AbstractConfigDefinition append(string $path, mixed $value)

Appends one configuration value at a dot-separated list path.

Parameters

string $path
mixed $value

Return Value

AbstractConfigDefinition

create

Creates an empty command configuration definition.

moduleKey

static string moduleKey()

Returns the module key used to select the commands configuration payload.

Return Value

string

command

CommandsConfigDefinition command(string $command)

Appends one legacy command class entry to the current definition.

Parameters

string $command

Return Value

CommandsConfigDefinition

commands

CommandsConfigDefinition commands(array $commands)

Replaces the current entries with command classes or metadata mappings.

Parameters

array $commands

Return Value

CommandsConfigDefinition