ListRoutes
class ListRoutes extends Command
Command that lists all registered routes.
Traits
Properties
Methods
Resolves item from the container using overloading.
Writes n newlines to output.
Writes string to output.
Draws a progress bar and returns a progress bar instance.
Draws a table.
Draws an ordered list.
Draws an unordered list.
Writes question to output and returns boolesn value corresponding to the chosen value.
Writes question to output and returns user input.
Prints out a list of options and returns the array key of the chosen value.
Writes question to output and returns hidden user input.
Details
in ContainerAwareTrait at line 67
setContainer(Container $container)
Sets the container instance.
in ContainerAwareTrait at line 78
mixed
__get(string $key)
Resolves item from the container using overloading.
in CommandHelperTrait at line 40
protected
nl(int $lines = 1, int $writer = Output::STANDARD)
Writes n newlines to output.
in CommandHelperTrait at line 51
protected
write(string $string, int $writer = Output::STANDARD)
Writes string to output.
in CommandHelperTrait at line 61
protected
error(string $string)
Writes string to output using the error writer.
in CommandHelperTrait at line 69
protected
clear()
Clears the screen.
in CommandHelperTrait at line 79
protected
bell(int $times = 1)
Rings the terminal bell n times.
in CommandHelperTrait at line 89
protected
countdown(int $from = 5)
Counts down from n.
in CommandHelperTrait at line 102
protected ProgressBar
progressBar(int $items, int $redrawRate = null, string $prefix = null)
Draws a progress bar and returns a progress bar instance.
in CommandHelperTrait at line 129
protected
table(array $columnNames, array $rows, int $writer = Output::STANDARD)
Draws a table.
in CommandHelperTrait at line 141
protected
ol(array $items, string $marker = '<yellow>%s</yellow>.', int $writer = Output::STANDARD)
Draws an ordered list.
in CommandHelperTrait at line 153
protected
ul(array $items, string $marker = '<yellow>*</yellow>', int $writer = Output::STANDARD)
Draws an unordered list.
in CommandHelperTrait at line 165
protected bool
confirm(string $question, string $default = 'n')
Writes question to output and returns boolesn value corresponding to the chosen value.
in CommandHelperTrait at line 177
protected mixed
question(string $question, mixed $default = null)
Writes question to output and returns user input.
in CommandHelperTrait at line 189
protected int
select(string $question, array $options)
Prints out a list of options and returns the array key of the chosen value.
in CommandHelperTrait at line 202
protected mixed
secret(string $question, mixed $default = null, bool $fallback = false)
Writes question to output and returns hidden user input.
in Command at line 72
string
getCommandDescription()
Returns the command description.
in Command at line 80
array
getCommandArguments()
Returns the command arguments.
in Command at line 88
array
getCommandOptions()
Returns the command options.
in Command at line 96
bool
isStrict()
Returns TRUE we should be strict about what arguments and options we allow and FALSE if not.
at line 45
execute(Routes $routes)
Executes the command.