mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
Add simple Message class and remove "Messages" dependancy in Validation.php, which should be backwards compatible with all existing validations. By moving \Phalcon\Filter\Validation() into validate() we're making the validation paths more explicit, if an objects implements ValidatorInterface, it uses phalcon, otherwise it's a simple BaseValidator passing messages back to $this->appendMessage(). The original phalcon Message class has additional fields we don't use, we only use fieldname for tracking purposes and the message itself.