PHP Class Equip\Responder\ChainedResponder

Inheritance: extends Equip\Structure\Set, implements Equip\Adr\ResponderInterface, use trait Equip\Resolver\ResolverTrait
Mostrar archivo Open project: equip/framework

Public Methods

Method Description
__construct ( Relay\ResolverInterface $resolver, array $responders = [FormattedResponder::class, RedirectResponder::class, StatusResponder::class] )
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, Equip\Adr\PayloadInterface $payload )

Protected Methods

Method Description
assertValid ( array $classes )

Method Details

__construct() public method

public __construct ( Relay\ResolverInterface $resolver, array $responders = [FormattedResponder::class, RedirectResponder::class, StatusResponder::class] )
$resolver Relay\ResolverInterface
$responders array

__invoke() public method

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

assertValid() protected method

protected assertValid ( array $classes )
$classes array