Justoverclock I wonder if is possible to serialize extension settings (input field) into extend.php. i'm able to use app.forum.attribute in the backend?
Kylo Justoverclock you can use SettingsRepositoryInterface for that and probably you won't need it on the extend.php. There's always another way, think about it. Docs link: https://docs.flarum.org/extend/settings.html#the-settings-repository See Clark's answer to old discussion of mine (ways back the first time I'm trying to write an extension): https://discuss.flarum.org/d/22393-how-to-get-extension-settings-from-extend-php Here are some examples: https://github.com/the-turk/flarum-regrole/blob/master/src/LoadSettings.php https://github.com/FriendsOfFlarum/upload/blob/ccd33c0fb43060a39c53a336e09dbf8022f19066/src/Helpers/Util.php#L78-L79 You can even write your own helper class and use it like you're using SettingsRepositoryInterface: https://github.com/the-turk/flarum-mathren/blob/v1.0.0/src/Helpers/Util.php https://github.com/the-turk/flarum-mathren/blob/4baf2d078c6b22b34f2b39f3d136a02a6db3120f/src/LoadSettings.php#L29
Ralkage We also have the Settings extender which I like to use a lot 😊 https://github.com/Ralkage/flarum-hcaptcha/blob/main/extend.php#L33-L34 Ref: https://docs.flarum.org/extend/settings.html#settings-in-the-frontend
Justoverclock @Ralkage yep I know this but doesn’t cover my need . I need the output of my settings inside the extend.php. But probably is wrong because Flarum is not fully loaded when extend.php is parsed I will learn kylo’s way 🤐…I hope