PHP 클래스 Equip\Handler\ActionHandler

파일 보기 프로젝트 열기: equip/framework

공개 메소드들

메소드 설명
__construct ( Relay\ResolverInterface $resolver )
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next )

비공개 메소드들

메소드 설명
handle ( Action $action, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface Use the action collaborators to get a response.
payload ( Equip\Adr\DomainInterface $domain, Equip\Adr\InputInterface $input, Psr\Http\Message\ServerRequestInterface $request ) : Equip\Adr\PayloadInterface Execute the domain to get a payload using input from the request.
response ( Equip\Adr\ResponderInterface $responder, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, Equip\Adr\PayloadInterface $payload ) : Psr\Http\Message\ResponseInterface Execute the responder to marshall the payload into the response.

메소드 상세

__construct() 공개 메소드

public __construct ( Relay\ResolverInterface $resolver )
$resolver Relay\ResolverInterface

__invoke() 공개 메소드

public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next )
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable