PHP 인터페이스 ZF\Console\DispatcherInterface

파일 보기 프로젝트 열기: zfcampus/zf-console 0 사용 예제들

공개 메소드들

메소드 설명
dispatch ( Route $route, Zend\Console\Adapter\AdapterInterface $console ) : integer Dispatch a routed command to its handler.
has ( string $command ) : boolean Does the dispatcher have a handler for the given command?
map ( string $command, $callable ) : self Map a command name to its handler.

메소드 상세

dispatch() 공개 메소드

Dispatch a routed command to its handler.
public dispatch ( Route $route, Zend\Console\Adapter\AdapterInterface $console ) : integer
$route Route
$console Zend\Console\Adapter\AdapterInterface
리턴 integer The exit status code from the command.

has() 공개 메소드

Does the dispatcher have a handler for the given command?
public has ( string $command ) : boolean
$command string
리턴 boolean

map() 공개 메소드

Map a command name to its handler.
public map ( string $command, $callable ) : self
$command string
리턴 self Should implement a fluent interface.