PHP 클래스 Webmozart\Console\Api\Resolver\CannotResolveCommandException

부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: extends RuntimeExceptio\RuntimeException
파일 보기 프로젝트 열기: webmozart/console 1 사용 예제들

공개 메소드들

메소드 설명
nameNotFound ( string $commandName, CommandCollection $commands, Exception $cause = null ) : static Creates an exception for the code {@link NAME_NOT_FOUND}.
noDefaultCommand ( Exception $cause = null ) : static Creates an exception for the code {@link NO_DEFAULT_COMMAND}.

메소드 상세

nameNotFound() 공개 정적인 메소드

Suggested alternatives are searched in the passed commands.
public static nameNotFound ( string $commandName, CommandCollection $commands, Exception $cause = null ) : static
$commandName string The command name that was not found.
$commands Webmozart\Console\Api\Command\CommandCollection A list of available commands that is searched for similar names.
$cause Exception The exception that caused this exception.
리턴 static The created exception.

noDefaultCommand() 공개 정적인 메소드

Creates an exception for the code {@link NO_DEFAULT_COMMAND}.
public static noDefaultCommand ( Exception $cause = null ) : static
$cause Exception The exception that caused this exception.
리턴 static The created exception.