Equip\Handler\ActionHandler::payload PHP Method

payload() private method

Execute the domain to get a payload using input from the request.
private payload ( Equip\Adr\DomainInterface $domain, Equip\Adr\InputInterface $input, Psr\Http\Message\ServerRequestInterface $request ) : Equip\Adr\PayloadInterface
$domain Equip\Adr\DomainInterface
$input Equip\Adr\InputInterface
$request Psr\Http\Message\ServerRequestInterface
return Equip\Adr\PayloadInterface
    private function payload(DomainInterface $domain, InputInterface $input, ServerRequestInterface $request)
    {
        return $domain($input($request));
    }