DriverCommand
class DriverCommand extends ConsoleCommand
Show cache driver command
Properties
protected SymfonyStyle | $style | Style obj reference | from ConsoleCommand |
protected bool | $default | Set to true for default command | from ConsoleCommand |
protected Table | $table | Table output | from ConsoleCommand |
protected EventDispatcher | $dispatcher | Event dispatcher | from ConsoleCommand |
protected string|null | $outputType | Output type | from ConsoleCommand |
protected array | $result | Command result data | from ConsoleCommand |
Methods
Constructor
Command code
Add required argument
Add optional argument
Add optional option
Run console command
Show command title
Show error message
Show multipel errors
Show error details
Show 'done' message
Write field
Write field
Write line
Command config name cache:clear
Details
in ConsoleCommand at line 77
__construct(string|null $name = null, string|null $description = null)
Constructor
in ConsoleCommand at line 97
void
setOutputType(string|null $outputType)
Set output type
in ConsoleCommand at line 107
array
getResult()
Get execution result
in ConsoleCommand at line 117
boolean
isConsoleOutput()
Return true if output is to console
in ConsoleCommand at line 128
void
setDispatcher(object $dispatcher)
Set event dispatcher
at line 38
protected mixed
executeCommand(InputInterface $input, OutputInterface $output)
Command code
in ConsoleCommand at line 149
mixed
run(InputInterface $input, OutputInterface $output)
Run method wrapper
in ConsoleCommand at line 175
void
addRequiredArgument(string $name, string $description = '', mixed|null $default = null)
Add required argument
in ConsoleCommand at line 188
void
addOptionalArgument(string $name, string $description = '', mixed|null $default = null)
Add optional argument
in ConsoleCommand at line 201
void
addOptionalOption(string $name, string $description = '', mixed|null $default = null)
Add optional option
in ConsoleCommand at line 213
protected mixed
execute(InputInterface $input, OutputInterface $output)
Run console command
in ConsoleCommand at line 225
Table
table()
Get table obj
in ConsoleCommand at line 236
void
setDefault(bool $default = true)
Set command as default
in ConsoleCommand at line 246
bool
isDefault()
Return true if command is default.
in ConsoleCommand at line 258
void
showTitle(string|null $title = null, string $space = ' ')
Show command title
in ConsoleCommand at line 281
void
showError(string $message, string $label = 'Error:', string $space = ' ')
Show error message
in ConsoleCommand at line 296
void
showErrors(string|array $errors, string $label = 'Error:', string $space = ' ')
Show multipel errors
in ConsoleCommand at line 315
void
showErrorDetails(string|array $details, string $space = ' ')
Show error details
in ConsoleCommand at line 333
void
checkMark(string $space = ' ')
Show CHECK MARK
in ConsoleCommand at line 343
void
newLine()
New line
in ConsoleCommand at line 355
void
showCompleted(string|null $label = null, string $space = ' ')
Show 'done' message
in ConsoleCommand at line 372
void
writeField(string $label, mixed $value, string $color = 'cyan', string $space = ' ')
Write field
in ConsoleCommand at line 389
void
writeFieldLn(string $label, mixed $value, string $color = 'cyan', string $space = ' ')
Write field
in ConsoleCommand at line 403
void
writeLn(string $text, string $space = ' ', string|null $color = null)
Write line
at line 26
protected void
configure()
Command config name cache:clear