class Console (View source)

Traits

Constants

private VERSION

Define Bow Framework version.

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.

static Console|null
getInstance()

Get the console instance

void
bind(Loader $kernel)

Bind kernel

mixed
run()

Launch Bow task runner

mixed
call(string|null $command)

Calls a command

static Console
addCommand(string $command, callable $cb)

No description

static void
register(string $command, callable|string $cb)

Add a custom order to the store from the web env This method work on web and cli env

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

static Console|null getInstance()

Get the console instance

Return Value

Console|null

Exceptions

ConsoleException

void bind(Loader $kernel)

Bind kernel

Parameters

Loader $kernel

Return Value

void

mixed run()

Launch Bow task runner

Return Value

mixed

Exceptions

mixed call(string|null $command)

Calls a command

Parameters

string|null $command

Return Value

mixed

Exceptions

static Console addCommand(string $command, callable $cb)

No description

Parameters

string $command
callable $cb

Return Value

Console

static void register(string $command, callable|string $cb)

Add a custom order to the store from the web env This method work on web and cli env

Parameters

string $command
callable|string $cb

Return Value

void