PSR-4
use current validator api
move `addConstraint` and `transform` methods in extension