Метод | Описание | |
---|---|---|
__construct ( |
Creates a new console application. | |
getCommand ( $name ) | ||
getCommands ( ) | ||
getConfig ( ) | ||
getDefaultCommands ( ) | ||
getGlobalArgsFormat ( ) | ||
getNamedCommands ( ) | ||
hasCommand ( $name ) | ||
hasCommands ( ) | ||
hasDefaultCommands ( ) | ||
hasNamedCommands ( ) | ||
resolveCommand ( Webmozart\Console\Api\Args\RawArgs $args ) | ||
run ( Webmozart\Console\Api\Args\RawArgs $args = null, Webmozart\Console\Api\IO\InputStream $inputStream = null, Webmozart\Console\Api\IO\OutputStream $outputStream = null, Webmozart\Console\Api\IO\OutputStream $errorStream = null ) |
Метод | Описание | |
---|---|---|
addCommand ( |
||
exceptionToExitCode ( integer $code ) : integer | Converts an exception code to an exit code. | |
validateCommandName ( |
public __construct ( |
||
$config | The application configuration or a callable that creates the configuration. |
public resolveCommand ( Webmozart\Console\Api\Args\RawArgs $args ) | ||
$args | Webmozart\Console\Api\Args\RawArgs |
public run ( Webmozart\Console\Api\Args\RawArgs $args = null, Webmozart\Console\Api\IO\InputStream $inputStream = null, Webmozart\Console\Api\IO\OutputStream $outputStream = null, Webmozart\Console\Api\IO\OutputStream $errorStream = null ) | ||
$args | Webmozart\Console\Api\Args\RawArgs | |
$inputStream | Webmozart\Console\Api\IO\InputStream | |
$outputStream | Webmozart\Console\Api\IO\OutputStream | |
$errorStream | Webmozart\Console\Api\IO\OutputStream |