This unifies use interface and improves internal handling of plugins so that all scenarios are still supported while at the same time it adds support for extending either DSL or component's constant (in a generic way). Plugins are now configured in the settings for each component, so that you can actually see which plugins have been enabled for a given component instance, ie:
With this done, it should be possible to easily convert "default views" in rom-sql into a plugin and it should prevent auto_restrictions from being loaded more than once (which happened before and caused issues with method being defined multiple times, that's why we used to have a guard clause checking if a method isn't defined yet which was always just a hack to silence the warning).
This unifies
use
interface and improves internal handling of plugins so that all scenarios are still supported while at the same time it adds support for extending either DSL or component's constant (in a generic way). Plugins are now configured in the settings for each component, so that you can actually see which plugins have been enabled for a given component instance, ie:With this done, it should be possible to easily convert "default views" in rom-sql into a plugin and it should prevent auto_restrictions from being loaded more than once (which happened before and caused issues with method being defined multiple times, that's why we used to have a guard clause checking if a method isn't defined yet which was always just a hack to silence the warning).