class Console

Class Console

Properties

protected Input $input
protected Output $output
protected ConsoleLogger $logger

Methods

__construct()

Setup minimal constraints for Console Output and Logging

createCommandSet(string $command, string|null $module = null, string|null $vendor = null)

Creates a new instance of CommandSet by given command and optionally module name.

array
getAvailableCommands()

Returns all available commands

getLogger()

No description

void
listCommands()

Prints a list of all available commands with arguments and exit.

void
printDebugProfiling()

Prints debug profiling information.

void
run()

Runs the console application.

runCommand(Input $input)

Runs a command defined by input.

runPreBoot()

No description

void
showWarnings(Input $input, Output $output)

Shows importent information of current system state to the user

Details

at line 35
__construct()

Setup minimal constraints for Console Output and Logging

at line 157
CommandSet createCommandSet(string $command, string|null $module = null, string|null $vendor = null)

Creates a new instance of CommandSet by given command and optionally module name.

Parameters

string $command
string|null $module
string|null $vendor

Return Value

CommandSet

at line 215
array getAvailableCommands()

Returns all available commands

Return Value

array

at line 190
ConsoleLogger getLogger()

No description

Return Value

ConsoleLogger

at line 200
void listCommands()

Prints a list of all available commands with arguments and exit.

For displaying all available commands, this method scans different folders for console commands and instantiates them for getting their definitions which are used to print the content as table.

Return Value

void

at line 284
protected void printDebugProfiling()

Prints debug profiling information.

Return Value

void

at line 44
void run()

Runs the console application.

Return Value

void

at line 109
runCommand(Input $input)

Runs a command defined by input.

Parameters

Input $input

at line 133
runPreBoot()

No description

at line 272
protected void showWarnings(Input $input, Output $output)

Shows importent information of current system state to the user

Parameters

Input $input
Output $output

Return Value

void