0 follower

Interface Yiisoft\ErrorHandler\ThrowableResponseFactoryInterface

Implemented byYiisoft\ErrorHandler\ThrowableResponseFactory

ThrowableResponseFactoryInterface produces a response for Throwable object.

Public Methods

Hide inherited methods

Method Description Defined By
create() Handles a Throwable object and produces a response. Yiisoft\ErrorHandler\ThrowableResponseFactoryInterface

Method Details

Hide inherited methods

create() public abstract method

Handles a Throwable object and produces a response.

public abstract create( Throwable $throwable, \Psr\Http\Message\ServerRequestInterface $request ): \Psr\Http\Message\ResponseInterface
$throwable Throwable
$request \Psr\Http\Message\ServerRequestInterface

                public function create(Throwable $throwable, ServerRequestInterface $request): ResponseInterface;