Documentation

PriorityMiddleware
in package
implements PriorityMiddlewareInterface

A middleware with a priority setting

Table of Contents

Interfaces

PriorityMiddlewareInterface

Properties

$middleware  : MiddlewareInterface
$priority  : int

Methods

__construct()  : mixed
PriorityMiddleware constructor.
getPriority()  : int
Gets the priority value
process()  : ResponseInterface

Properties

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
inheritDoc
Return values
int

process()

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Tags
inheritDoc
Return values
ResponseInterface

        
On this page

Search results