src/Relay.php
public function executePipeline($pipeline, Request $request, Response $response = null)
	{
		$relayBuilder = new \Relay\RelayBuilder($this->resolver);
		$relay = $relayBuilder->newInstance($pipeline);
		return $relay($request, $response);
	}
public function executePipeline($pipeline, Request $request, Response $response = null)
	{
		$relayBuilder = new \Relay\RelayBuilder($this->resolver);
		$relay = $relayBuilder->newInstance($pipeline);
		return $relay($request, $response);
	}
public function executePipeline ( $ pipeline , Request $ request , Response $ response = null ) { $ relayBuilder = new \ Relay \ RelayBuilder ( $ this -> resolver ) ; $ relay = $ relayBuilder -> newInstance ( $ pipeline ) ; return $ relay ( $ request , $ response ) ; }
Trigger execution of the supplied pipeline through Relay.

@param mixed    $pipeline The stack of middleware definitions.
@param Request  $request  The PSR7 request.
@param Response $response The PSR7 response (for double-pass stacks).

@return Response
Trigger execution of the supplied pipeline through Relay .