PHP Интерфейс ZF\Console\DispatcherInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.