Kraken\Channel\ChannelInterface::getOutput PHP Method

getOutput() public method

Throws ResourceUndefinedException if output router is not found.
public getOutput ( ) : Kraken\Channel\Router\RouterInterface | Kraken\Channel\Router\RouterCompositeInterface
return Kraken\Channel\Router\RouterInterface | Kraken\Channel\Router\RouterCompositeInterface
    public function getOutput();

Usage Example

Example #1
0
 /**
  * @param ChannelInterface $channel
  */
 protected function applyConsoleController(ChannelInterface $channel)
 {
     $router = $channel->getInput();
     $router->addDefault(new RuleHandler(function ($params) {
     }));
     $router = $channel->getOutput();
     $router->addDefault(new RuleHandler(function ($params) use($channel) {
         $channel->push($params['alias'], $params['protocol'], $params['flags'], $params['success'], $params['failure'], $params['cancel'], $params['timeout']);
     }));
 }
All Usage Examples Of Kraken\Channel\ChannelInterface::getOutput