PHP 클래스 Zend\Stratigility\Middleware\CallableMiddlewareWrapper

상속: implements Interop\Http\Middleware\ServerMiddlewareInterface
파일 보기 프로젝트 열기: zendframework/zend-stratigility 1 사용 예제들

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

process() 공개 메소드

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