Skip to content

Kirby 5.0.4

$kirby->environment()

Returns the environment object with access to the detected host, base url and dedicated options

$kirby->environment(): Kirby\Http\Environment

Return type

Kirby\Http\Environment

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

Parent class

Kirby\Cms\App