RequestProcessor
extends ProcessorBase
in package
Class RequestProcessor
Table of Contents
Properties
- $id : string
- $title : string
- $container : Grav
Methods
- __construct() : mixed
- ProcessorBase constructor.
- process() : ResponseInterface
- addMessage() : void
- startTimer() : void
- stopTimer() : void
Properties
$id
public
string
$id
= 'request'
$title
public
string
$title
= 'Request'
$container
protected
Grav
$container
Methods
__construct()
ProcessorBase constructor.
public
__construct(Grav $container) : mixed
Parameters
- $container : Grav
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfaceaddMessage()
protected
addMessage(string $message[, string $label = 'info' ][, bool $isString = true ]) : void
Parameters
- $message : string
- $label : string = 'info'
- $isString : bool = true
startTimer()
protected
startTimer([string|null $id = null ][, string|null $title = null ]) : void
Parameters
- $id : string|null = null
- $title : string|null = null
stopTimer()
protected
stopTimer([string|null $id = null ]) : void
Parameters
- $id : string|null = null