QueueDispatcher
in package
implements
MiddlewareInterface, RequestHandlerInterface
Tags
Table of Contents
Interfaces
- MiddlewareInterface
- RequestHandlerInterface
Properties
- $kernel : RequestHandlerInterface
- $middlewareStack : array<string|int, MiddlewareInterface>
Methods
- __construct() : mixed
- QueueDispatcher constructor.
- add() : static
- addStack() : static
- handle() : ResponseInterface
- process() : ResponseInterface
- getRunner() : RequestHandlerInterface
Properties
$kernel
protected
RequestHandlerInterface
$kernel
$middlewareStack
protected
array<string|int, MiddlewareInterface>
$middlewareStack
= []
Methods
__construct()
QueueDispatcher constructor.
public
__construct(RequestHandlerInterface $kernel[, iterable<string|int, mixed>|null $middlewareStack = null ]) : mixed
Parameters
- $kernel : RequestHandlerInterface
- $middlewareStack : iterable<string|int, mixed>|null = null
add()
public
add(MiddlewareInterface $middleware) : static
Parameters
- $middleware : MiddlewareInterface
Return values
staticaddStack()
public
addStack(iterable<string|int, mixed> $middlewareStack) : static
Parameters
- $middlewareStack : iterable<string|int, mixed>
Tags
Return values
statichandle()
public
handle(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Tags
Return values
ResponseInterfaceprocess()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Tags
Return values
ResponseInterfacegetRunner()
protected
getRunner(RequestHandlerInterface $handler) : RequestHandlerInterface
Parameters
- $handler : RequestHandlerInterface