PHP 클래스 Webmozart\Console\Handler\CallbackHandler

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

공개 메소드들

메소드 설명
__construct ( callable $callback ) Creates the command handler.
handle ( Args $args, IO $io, Command $command )

메소드 상세

__construct() 공개 메소드

The passed callback receives three arguments: * {@link Args} $args: The console arguments. * {@link IO} $io: The I/O. * {@link Command} $command: The executed command. The callable should return 0 on success and a positive integer on error.
public __construct ( callable $callback )
$callback callable The callback to execute when handling a command.

handle() 공개 메소드

public handle ( Args $args, IO $io, Command $command )
$args Webmozart\Console\Api\Args\Args
$io Webmozart\Console\Api\IO\IO
$command Webmozart\Console\Api\Command\Command