class Hook (View source)

Methods

__construct(string $type, string|null $target = null, string|null $selector = null)

No description

static 
handle(ReflectionAttribute $attribute, CommandInfo $commandInfo)

No description

Details

__construct(string $type, string|null $target = null, string|null $selector = null)

No description

Parameters

string $type

When during the command lifecycle this hook will be called (e.g. validate).

string|null $target

Specifies which command(s) the hook will be attached to.

string|null $selector

A 'tag' that requests that a hook operate on the current command.

static handle(ReflectionAttribute $attribute, CommandInfo $commandInfo)

No description

Parameters

ReflectionAttribute $attribute
CommandInfo $commandInfo