Skip to content

Kirby 3.9.8

$environment->detect()

Sanitizes the server info and detects all relevant parts. This can be called again at a later point to overwrite all the stored information and re-detect the environment if necessary.

$environment->detect(?array $options = null, ?array $info = null): array

Parameters

Name Type Default Description
$options array|null null
$info array|null null Optional override for $_SERVER

Return type

array

Parent class

Kirby\Http\Environment