final class ErrorConfigDefinition extends AbstractConfigDefinition (View source)

Builds one composable layer of HTTP error-page template configuration.

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 definition that contributes only explicitly configured templates.

static string

Returns the registry key under which error-page definitions are collected.

string
notFoundView(string $template)

Selects the view rendered for resources that cannot be found.

internalServerErrorView(string $template)

Selects the view rendered for unexpected server failures.

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 definition that contributes only explicitly configured templates.

Return Value

ErrorConfigDefinition

moduleKey

static string moduleKey()

Returns the registry key under which error-page definitions are collected.

Return Value

string

notFoundView

ErrorConfigDefinition notFoundView(string $template)

Selects the view rendered for resources that cannot be found.

Parameters

string $template

Return Value

ErrorConfigDefinition

internalServerErrorView

ErrorConfigDefinition internalServerErrorView(string $template)

Selects the view rendered for unexpected server failures.

Parameters

string $template

Return Value

ErrorConfigDefinition