Hi all. I’m using ValidBox and recently migrated my resource bundles from .properties files to a custom MongoDB backed system.
What would be the best way to get ValidBox to pull my error messages from MongoDB (using {ObjectName}.{Field}.{ConstraintType}} as the key)? I’m thinking I should write my own implementation of coldbox.system.validation.result.IValidationResult, but I’m not sure how I would tell ColdBox to use it? Would I map it somehow in Wirebox config?
Or, could/should I somehow override the ResourceBundle plugin globally in my app, so the injection of coldbox:plugin:ResourceBundle in the ValidationManager (and anywhere else presumably) uses my ResourceBundle object instead? I’m thinking that might be a better approach. I just read I can do this with coldbox.coldboxExtensionsLocation.
Thanks in advance for the advice.