Skip to content

StrategyHttpExceptionMiddleware


  • Full name: \Codefy\Framework\Http\Middleware\Exception\StrategyHttpExceptionMiddleware
  • This class implements: MiddlewareInterface

Properties

handler

protected \Codefy\Framework\Http\Middleware\Exception\ExceptionHandler $handler

Methods

__construct

public __construct(\Codefy\Framework\Http\Middleware\Exception\ExceptionHandler $handler): mixed

Parameters:

Parameter Type Description
$handler \Codefy\Framework\Http\Middleware\Exception\ExceptionHandler

process

public process(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Server\RequestHandlerInterface $handler): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface
$handler \Psr\Http\Server\RequestHandlerInterface

Throws: