CallableRouteMiddleware
in package
implements
MiddlewareInterface
PHP Mini Framework
Tags
Interfaces, Classes, Traits and Enums
- MiddlewareInterface
- PHP Mini Framework
Table of Contents
- $callable : Closure
- $params : mixed
- __construct() : mixed
- handle() : false|mixed
- Middleware handler
Properties
$callable
private
Closure
$callable
Tags
$params
private
mixed
$params
= []
Tags
Methods
__construct()
public
__construct(Closure $callable[, mixed $params = [] ]) : mixed
Parameters
- $callable : Closure
- $params : mixed = []
Tags
Return values
mixed —handle()
Middleware handler
public
handle(RequestInterface|RouteInterface &$request, ResponseInterface &$response[, callable $next = null ]) : false|mixed
Parameters
- $request : RequestInterface|RouteInterface
- $response : ResponseInterface
- $next : callable = null
Tags
Return values
false|mixed —Return false if failed