ibrows / datatrans
Ibrows Datatrans Integration
2.0.1
2015-01-09 15:01 UTC
Requires
- php: >=5.3.3
- dominikzogg/helper-functions: ~1.3,>=1.3.1
- psr/log: ~1.0
- symfony/validator: ~2.3
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-26 18:48:23 UTC
README
Installation
Prepare Services
<?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()
;