Documentation

RequestHook extends EventHook
in package

An event that gets triggered when an HTTP request begins.

Table of Contents

$eventHandlers  : array<string|int, mixed>
__invoke()  : void
Fires when the class is invoked.
addHandler()  : EventHook
Add an HTTP handler to the list of handlers.
removeHandler()  : EventHook
Remove an HTTP handler from the list of handlers.

Properties

$eventHandlers

private array<string|int, mixed> $eventHandlers = []

Methods

__invoke()

Fires when the class is invoked.

public __invoke(array<string|int, callable> ...$args) : void
Parameters
$args : array<string|int, callable>
Return values
void

addHandler()

Add an HTTP handler to the list of handlers.

public addHandler(callable $handler) : EventHook
Parameters
$handler : callable
Return values
EventHook

removeHandler()

Remove an HTTP handler from the list of handlers.

public removeHandler(callable $handler) : EventHook
Parameters
$handler : callable
Return values
EventHook

Search results