Method | Description | |
---|---|---|
__construct ( |
||
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, Equip\Adr\PayloadInterface $payload ) |
Method | Description | |
---|---|---|
assertValid ( array $classes ) | ||
format ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, Equip\Adr\PayloadInterface $payload ) : Psr\Http\Message\ResponseInterface | Update the response by formatting the payload. | |
formatter ( Psr\Http\Message\ServerRequestInterface $request ) : Equip\Formatter\FormatterInterface | Retrieve the formatter to use for the current request. | |
hasOutput ( Equip\Adr\PayloadInterface $payload ) : boolean | Determine if the payload has usable output | |
priorities ( ) : array | Retrieve a map of accepted priorities with the responsible formatter. | |
sortValues ( ) |
public __construct ( |
||
$negotiator | ||
$resolver | Relay\ResolverInterface | |
$formatters | array |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, Equip\Adr\PayloadInterface $payload ) | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$payload | Equip\Adr\PayloadInterface |
protected format ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, Equip\Adr\PayloadInterface $payload ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$payload | Equip\Adr\PayloadInterface | |
return | Psr\Http\Message\ResponseInterface |
protected formatter ( Psr\Http\Message\ServerRequestInterface $request ) : Equip\Formatter\FormatterInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | Equip\Formatter\FormatterInterface |
protected priorities ( ) : array | ||
return | array |