PHP Class Equip\Handler\ActionHandler

Show file Open project: equip/framework

Public Methods

Method Description
__construct ( Relay\ResolverInterface $resolver )
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next )

Private Methods

Method Description
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.

Method Details

__construct() public method

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

__invoke() public method

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