CallableMiddleware Class

Aurora\Middleware Namespace

Interfaces

  • I MiddlewareInterface

Properties

callback

Callback

protected $callback: \Closure

Constructor

__construct

Constructor

Parameters

  • Closure $callback — Middleware callback

Signature

public function __construct(Closure $callback)

Methods

__construct

Constructor

Parameters

  • Closure $callback — Middleware callback

Signature

public function __construct(Closure $callback)

process

Process request

Parameters

  • Psr\Http\Message\ServerRequestInterface $request — The request instance
  • Psr\Http\Server\RequestHandlerInterface $handler — The handler instance

Return Value

  • \ResponseInterface

Signature

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

Go to top