PHP 클래스 Pagekit\Application\Console\Command

상속: extends Symfony\Component\Console\Command\Command
파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

메소드 상세

__construct() 공개 메소드

Create a new console command instance.
public __construct ( )

abort() 공개 메소드

Aborts command execution.
public abort ( string $string )
$string string

argument() 공개 메소드

Get the value of a command argument.
public argument ( string $key = null ) : string | array
$key string
리턴 string | array

ask() 공개 메소드

Prompt the user for input.
public ask ( string $question, string $default = null ) : string
$question string
$default string
리턴 string

comment() 공개 메소드

Write a string as comment output.
public comment ( string $string )
$string string

confirm() 공개 메소드

Confirm a question with the user.
public confirm ( string $question, boolean $default = true ) : boolean
$question string
$default boolean
리턴 boolean

error() 공개 메소드

Write a string as error output.
public error ( string $string )
$string string

info() 공개 메소드

Write a string as information output.
public info ( string $string )
$string string

initialize() 보호된 메소드

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

line() 공개 메소드

Write a string as standard output.
public line ( string $string )
$string string

option() 공개 메소드

Get the value of a command option.
public option ( string $key = null ) : string | array
$key string
리턴 string | array

question() 공개 메소드

Write a string as question output.
public question ( string $string )
$string string

secret() 공개 메소드

Prompt the user for input but hide the answer from the console.
public secret ( string $question, boolean $fallback = true ) : string
$question string
$fallback boolean
리턴 string

setConfig() 공개 메소드

Set the Pagekit config.
public setConfig ( array $config )
$config array

setContainer() 공개 메소드

Set the Pagekit application instance.
public setContainer ( Pagekit\Container $container )
$container Pagekit\Container

프로퍼티 상세

$config 보호되어 있는 프로퍼티

The Pagekit config.
protected array $config
리턴 array

$container 보호되어 있는 프로퍼티

The Container instance.
protected Container,Pagekit $container
리턴 Pagekit\Container

$description 보호되어 있는 프로퍼티

The console command description.
protected string $description
리턴 string

$input 보호되어 있는 프로퍼티

The console command input.
protected InputInterface,Symfony\Component\Console\Input $input
리턴 Symfony\Component\Console\Input\InputInterface

$name 보호되어 있는 프로퍼티

The console command name.
protected string $name
리턴 string

$output 보호되어 있는 프로퍼티

The console command output.
protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface