class Console (View source)

Traits

Constants

private COMMAND

The command list

private ADD_ACTION

The action list

Methods

void
throwFailsCommand(string $message, string|null $command = null)

Throw fails command

void
__construct(Setting $setting)

Bow constructor.

void
bind(Loader $kernel)

Bind kernel

mixed
run()

Launch Bow task runner

void
call(string $command)

Calls a command

addCommand(string $command, callable $cb)

Add a custom order to the store

Details

protected void throwFailsCommand(string $message, string|null $command = null)

Throw fails command

Parameters

string $message
string|null $command

Return Value

void

Exceptions

ErrorException

void __construct(Setting $setting)

Bow constructor.

Parameters

Setting $setting

Return Value

void

void bind(Loader $kernel)

Bind kernel

Parameters

Loader $kernel

Return Value

void

mixed run()

Launch Bow task runner

Return Value

mixed

Exceptions

void call(string $command)

Calls a command

Parameters

string $command

Return Value

void

Exceptions

Console addCommand(string $command, callable $cb)

Add a custom order to the store

Parameters

string $command
callable $cb

Return Value

Console