PHP Class Equip\Responder\ChainedResponder

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

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
assertValid ( array $classes )

Method Details

__construct() public méthode

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

__invoke() public méthode

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 méthode

protected assertValid ( array $classes )
$classes array