Alexey Barchenkov

Results 6 comments of Alexey Barchenkov

Our API used as backend for a few frontend applications and for admin panel wich is used by non developers. And API by itself used by some specialists who know...

> I don't want to complicate things in this library by introducing the translation layer (as this is not intended usage of those errors) but we can allow overriding message...

> Sure, a PR is welcome! We can continue this discussion there. Okay, thank you! Then I'll make a PR with something like ``` static public $messages = [ 'unknownFieldMessage'...

> > Variant with static public $messageUnknownField = 'Field "% s" is not defined by type% s'; is also suitable, but not entirely convenient, because you will need to extract...

This ```trans()``` function is from symfony framework translation system. Similar translation system has zend framework and some other frameworks. To explain in a simple way, they use translation files (for...

Okay, I'll fork and do a PR with something like ```static public $ unknownFieldMessage = 'Field "% s" is not defined by type% s' ;``` for all validation classes. This...