Kraken\Channel\Router\RouterComposite::handle PHP Method

handle() public method

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
    public function handle($name, ProtocolInterface $protocol, $flags = 0, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0)
    {
        $handled = false;
        foreach ($this->bus as $name => $router) {
            if ($router->handle($name, $protocol, $flags, $success, $failure, $cancel, $timeout)) {
                $handled = true;
            }
        }
        return $handled;
    }