I am developing a plugin which is being executed in the beforeRender event of the view. This plugin can be configured by: a. the default config.php file which comes with the plugin and b. in the general config of the application.
but it should also be possible to set module specific configuration for the plugin.
I know it's possible to get all registered modules, but how do I get the configuration for that module?
As far as I know it's only possible to:
- let the developer of the module include a method to return the specific configuration and call that method by creating an instance of that module (because you don get the moduleÅ› instance but only the classname).
(This seems to work by the way, but isn't there a better way).
Subquestion: are all configs being merged by the application instance and is the complete config available somehow?