class Context implements ContextualAttribute (View source)

Methods

__construct(string $key, mixed $default = null, bool $hidden = false)

Create a new attribute instance.

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

Resolve the context value.

Details

__construct(string $key, mixed $default = null, bool $hidden = false)

Create a new attribute instance.

Parameters

string $key
mixed $default
bool $hidden

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

Resolve the context value.

Parameters

Context $attribute
Container $container

Return Value

mixed