PHP Class Kraken\Channel\Router\RouterComposite

Inheritance: implements Kraken\Channel\Router\RouterCompositeInterface
Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$bus RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[]

Méthodes publiques

Méthode Description
__construct ( RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[] $bus = [] )
__destruct ( )
addDefault ( callable $handler, $propagate = false, $limit )
addRule ( callable $matcher, callable $handler, $propagate = false, $limit )
erase ( )
existsBus ( $name )
getBus ( $name )
getBuses ( )
handle ( $name, Kraken\Channel\Protocol\ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout )
removeBus ( $name )
setBus ( $name, $router )

Method Details

__construct() public méthode

public __construct ( RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[] $bus = [] )
$bus RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[]

__destruct() public méthode

public __destruct ( )

addDefault() public méthode

public addDefault ( callable $handler, $propagate = false, $limit )
$handler callable

addRule() public méthode

public addRule ( callable $matcher, callable $handler, $propagate = false, $limit )
$matcher callable
$handler callable

erase() public méthode

public erase ( )

existsBus() public méthode

public existsBus ( $name )

getBus() public méthode

public getBus ( $name )

getBuses() public méthode

public getBuses ( )

handle() public méthode

public handle ( $name, Kraken\Channel\Protocol\ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout )
$protocol Kraken\Channel\Protocol\ProtocolInterface
$success callable
$failure callable
$cancel callable

removeBus() public méthode

public removeBus ( $name )

setBus() public méthode

public setBus ( $name, $router )

Property Details

$bus protected_oe property

protected RouterInterface[]|RouterCompositeInterface[],Kraken\Channel\Router $bus
Résultat RouterInterface[] | Kraken\Channel\Router\RouterCompositeInterface[]