class Config implements ContextualAttribute (View source)

Methods

__construct(string $key, mixed $default = null)

Create a new class instance.

static mixed
resolve(Config $attribute, Container $container)

Resolve the configuration value.

Details

__construct(string $key, mixed $default = null)

Create a new class instance.

Parameters

string $key
mixed $default

static mixed resolve(Config $attribute, Container $container)

Resolve the configuration value.

Parameters

Config $attribute
Container $container

Return Value

mixed