Command
abstract class Command extends Command
Traits
Properties
| protected string | $name | Command name |
|
| protected string | $description | Command description |
|
| protected string | $help | Write your help word with this property |
|
| protected string | $signature | Command signature is combination of name, argument, and option |
|
| protected | $io | Input and Output interface property |
|
| protected | $input | ||
| protected | $output | ||
| protected | $terminal | cli Interface property |
Methods
int
execute(InputInterface $input, OutputInterface $output)
No description
void
handle()
Write some conde inside this method
void
configure()
Command configuration, setup your description, name, argument, options etc
Details
in
Utils at line 18
options()
No description
in
Utils at line 24
option(string $key)
No description
in
Utils at line 29
arguments()
No description
in
Utils at line 34
argument(string $key)
No description
in
Utils at line 39
command(string $commandName, array $arguments)
No description
in
Utils at line 45
output(string $content)
No description
in
Utils at line 50
success(string $content)
No description
in
Utils at line 55
info(string $content)
No description
in
Utils at line 60
error(string $content)
No description
in
Utils at line 65
newLine()
No description
in
Utils at line 70
justify(array $word, string $separator = '.')
No description
in
Utils at line 79
json($content)
No description
in
Utils at line 84
table(array $header, array $data)
No description
at line 68
protected int
execute(InputInterface $input, OutputInterface $output)
No description
at line 83
abstract protected void
handle()
Write some conde inside this method
at line 91
protected void
configure()
Command configuration, setup your description, name, argument, options etc