Kirby::instance()
Returns the current App instance
Kirby::instance(Kirby\Cms\App|null $instance = null, bool $lazy = false): Kirby\Cms\App|null
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $instance | Kirby\Cms\Appornull |
null
|
|
| $lazy | bool |
false
|
If true, the instance is only returned if already existing |
Return types
Kirby\Cms\Appornull