PHP Class Zend\Stratigility\Middleware\CallableMiddlewareWrapper

Inheritance: implements Interop\Http\Middleware\ServerMiddlewareInterface
Exibir arquivo Open project: zendframework/zend-stratigility Class Usage Examples

Public Methods

Method Description
__construct ( callable $middleware, Psr\Http\Message\ResponseInterface $prototype )
process ( Psr\Http\Message\ServerRequestInterface $request, Interop\Http\Middleware\DelegateInterface $delegate ) Proxies to underlying middleware, using composed response prototype.

Method Details

__construct() public method

public __construct ( callable $middleware, Psr\Http\Message\ResponseInterface $prototype )
$middleware callable
$prototype Psr\Http\Message\ResponseInterface

process() public method

Also decorates the $delegator using the CallableMiddlewareWrapper. {@inheritDocs}
public process ( Psr\Http\Message\ServerRequestInterface $request, Interop\Http\Middleware\DelegateInterface $delegate )
$request Psr\Http\Message\ServerRequestInterface
$delegate Interop\Http\Middleware\DelegateInterface