Problem with `kirby()` being passed to config option

Hey there,
when fetching this option (via option()) inside config.php: 'some-option' => kirby()->root('config'), I get path/to/vendor/getkirby/config - it doesn’t happen when using a callback function, but in my use case, that’s currently not an option … any pointers in the right direction are appreciated!

Best of wishes in all your endeavours,

You can’t use kirby() inside the config, unless you use it inside the ready option.

1 Like

Thanks, exactly what I didn’t know (= needed)!