- Changed the string formater from sprintf to custom function. Exception parameters should be more readable now.
- Several refactorings on the exception reporting model
- Improved builders ( new v(array('int', 'positive', 'between'=>array(1,256))); is now possible, great for dependency injection.
Note: There are nasty things on this commit. Duplicated code, orphan methods and such. Next step is a nice quality-wide refactoring.
-Several improvements on the messaging system and error reporting, lots of refactored code.
-Validators can now be safely named $val->setName('My Field'), and that name will reflect on the validation message ("My Field must be bla bla bla" instead of "incorrect value" must be bla bla bla)
-Simplified defaultTemplates on Exceptions
-Exceptions now can be iterated and recursively iterated
-Messages built by RecursiveTreeIterator (SPL), faster an simpler
-attribute, key and composite exceptions message plays nicer (no redundant messages)