Property | Type | Description | |
---|---|---|---|
$config | array | The Pagekit config. | |
$container | Pagekit\Container | The Container instance. | |
$description | string | The console command description. | |
$input | Symfony\Component\Console\Input\InputInterface | The console command input. | |
$name | string | The console command name. | |
$output | Symfony\Component\Console\Output\OutputInterface | The console command output. |
Method | Description | |
---|---|---|
__construct ( ) | Create a new console command instance. | |
abort ( string $string ) | Aborts command execution. | |
argument ( string $key = null ) : string | array | Get the value of a command argument. | |
ask ( string $question, string $default = null ) : string | Prompt the user for input. | |
comment ( string $string ) | Write a string as comment output. | |
confirm ( string $question, boolean $default = true ) : boolean | Confirm a question with the user. | |
error ( string $string ) | Write a string as error output. | |
info ( string $string ) | Write a string as information output. | |
line ( string $string ) | Write a string as standard output. | |
option ( string $key = null ) : string | array | Get the value of a command option. | |
question ( string $string ) | Write a string as question output. | |
secret ( string $question, boolean $fallback = true ) : string | Prompt the user for input but hide the answer from the console. | |
setConfig ( array $config ) | Set the Pagekit config. | |
setContainer ( Pagekit\Container $container ) | Set the Pagekit application instance. |
Method | Description | |
---|---|---|
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) |
protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface |
public setContainer ( Pagekit\Container $container ) | ||
$container | Pagekit\Container |
protected Container,Pagekit $container | ||
return | Pagekit\Container |
protected string $description | ||
return | string |
protected InputInterface,Symfony\Component\Console\Input $input | ||
return | Symfony\Component\Console\Input\InputInterface |