PriorityMiddleware
in package
implements
PriorityMiddlewareInterface
A middleware with a priority setting
Table of Contents
Interfaces
Properties
- $middleware : MiddlewareInterface
- $priority : int
Methods
- __construct() : mixed
- PriorityMiddleware constructor.
- getPriority() : int
- Gets the priority value
- process() : ResponseInterface
Properties
$middleware
protected
MiddlewareInterface
$middleware
$priority
protected
int
$priority
= PHP_INT_MIN
Methods
__construct()
PriorityMiddleware constructor.
public
__construct(MiddlewareInterface $middleware[, int $priority = PHP_INT_MIN ]) : mixed
Parameters
- $middleware : MiddlewareInterface
- $priority : int = PHP_INT_MIN
getPriority()
Gets the priority value
public
getPriority() : int
Tags
Return values
intprocess()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface