Documentation

StopwatchMiddleware
in package
implements Middleware

FinalYes

Table of Contents

Interfaces

Middleware
Middleware can be uses to perform extra steps during the parsing process.

Properties

$logger  : LoggerInterface
$memory  : int
$stopwatch  : Stopwatch

Methods

__construct()  : mixed
execute()  : object
Executes this middleware class.
formatMemoryInKilobytes()  : string
formatMemoryInMegabytes()  : string
log()  : void
Dispatches a logging request.

Properties

Methods

formatMemoryInKilobytes()

private formatMemoryInKilobytes(int $memory) : string
Parameters
$memory : int
Return values
string

formatMemoryInMegabytes()

private formatMemoryInMegabytes(int $memory) : string
Parameters
$memory : int
Return values
string

log()

Dispatches a logging request.

private log(string $message[, string $priority = LogLevel::INFO ][, array<string|int, mixed> $parameters = [] ]) : void
Parameters
$message : string
$priority : string = LogLevel::INFO
$parameters : array<string|int, mixed> = []

        
On this page

Search results