Ad Schellevis c2ea9aa303 mvc: Phalcon framework dependency (https://github.com/opnsense/core/issues/6389)
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.
2024-02-13 18:21:30 +01:00
..
2023-09-20 13:44:39 +02:00