App customization

App customization

by Smita Rai -
Number of replies: 1

Hi,

I am working on customising the moodle app and I am working on a model of having custom settings in config.json.

The problem that I am facing is that mmCoreConfigConstants is not included in most of the controllers. Would be good to have if mmCoreConfigConstants is included in controllers and config by default.


Average of ratings: -
In reply to Smita Rai

Re: App customization

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Smita,

we don't include it in most of the controllers because we don't need it. Injecting services/constants isn't free, so we try to inject only the ones we need to improve the performance. If your custom app needs it in a certain controller then you can just add it to the list of injections smile

Kind regards,

Dani