PHP 클래스 Webmozart\Console\Api\Event\PreResolveEvent

Add a listener for this event to customize the command used for the given console arguments.
부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: extends Symfony\Component\EventDispatcher\Event
파일 보기 프로젝트 열기: webmozart/console 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Webmozart\Console\Api\Args\RawArgs $rawArgs, Webmozart\Console\Api\Application\Application $application ) Creates the event.
getApplication ( ) : Webmozart\Console\Api\Application\Application Returns the application.
getRawArgs ( ) : Webmozart\Console\Api\Args\RawArgs Returns the raw console arguments.
getResolvedCommand ( ) : ResolvedCommand Returns the resolved command.
setResolvedCommand ( ResolvedCommand $resolvedCommand = null ) Sets the resolved command.

메소드 상세

__construct() 공개 메소드

Creates the event.
public __construct ( Webmozart\Console\Api\Args\RawArgs $rawArgs, Webmozart\Console\Api\Application\Application $application )
$rawArgs Webmozart\Console\Api\Args\RawArgs The raw console arguments.
$application Webmozart\Console\Api\Application\Application The application.

getApplication() 공개 메소드

Returns the application.
public getApplication ( ) : Webmozart\Console\Api\Application\Application
리턴 Webmozart\Console\Api\Application\Application The application.

getRawArgs() 공개 메소드

Returns the raw console arguments.
public getRawArgs ( ) : Webmozart\Console\Api\Args\RawArgs
리턴 Webmozart\Console\Api\Args\RawArgs The raw console arguments.

getResolvedCommand() 공개 메소드

Returns the resolved command.
public getResolvedCommand ( ) : ResolvedCommand
리턴 Webmozart\Console\Api\Resolver\ResolvedCommand Returns the resolved command or `null` if none was set.

setResolvedCommand() 공개 메소드

Sets the resolved command.
public setResolvedCommand ( ResolvedCommand $resolvedCommand = null )
$resolvedCommand Webmozart\Console\Api\Resolver\ResolvedCommand The resolved command. Set to `null` to let the configured resolver decide.