메소드 |
설명 |
|
anticipate ( string $question, array $choices, string $default = null ) : string |
Prompt the user for input with auto completion. |
|
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. |
|
askWithCompletion ( string $question, array $choices, string $default = null ) : string |
Prompt the user for input with auto completion. |
|
choice ( string $question, array $choices, string $default = null, mixed $attempts = null, boolean $multiple = null ) : boolean |
Give the user a single choice from an array of answers. |
|
comment ( string $string ) : void |
Write a string as comment output. |
|
confirm ( string $question, boolean $default = false ) : boolean |
Confirm a question with the user. |
|
error ( string $string ) : void |
Write a string as error output. |
|
info ( string $string ) : void |
Write a string as information output. |
|
line ( string $string ) : void |
Write a string as standard output. |
|
option ( string $key = null ) : string | array |
Get the value of a command option. |
|
question ( string $string ) : void |
Write a string as question output. |
|
run ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer |
Run the console command. |
|
secret ( string $question, boolean $fallback = true ) : string |
Prompt the user for input but hide the answer from the console. |
|
setAppPath ( $path ) |
|
|
setBasePath ( $path ) |
|
|
setConfigPath ( $path ) |
|
|
setCraft ( Craft\ConsoleApp $craft ) |
|
|
setEnvironment ( $environment ) |
|
|
setPluginsPath ( $path ) |
|
|
setStoragePath ( $path ) |
|
|
setTemplatesPath ( $path ) |
|
|
setTranslationsPath ( $path ) |
|
|
table ( array $headers, array $rows, string $style = 'default' ) : void |
Format input to textual table. |
|
warn ( string $string ) : void |
Write a string as warning output. |
|