<?php
use Ibrows\DataTrans\Error\ErrorHandler;
use Psr\Log\NullLogger;
use Symfony\Component\Validator\Validation;
$errorHandler = new ErrorHandler(new Logger());
$serializer = new Serializer($errorHandler);
$validator = Validation::createValidatorBuilder()
->addMethodMapping('loadValidatorMetadata')
->getValidator()
;