Skip to content

Kirby 5.0.4

$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|null $options = null, array|null $info = null): array

Parameters

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

Return type

array

This method modifies the existing $environment object it is applied to and returns it again.

Parent class

Kirby\Http\Environment