ibrows / datatrans-bundle
Ibrows Datatrans Symfony Integration
2.0.1
2017-06-16 08:18 UTC
Requires
- php: >=5.3.3
- ibrows/datatrans: dev-master
- symfony/config: ~2.3|~3.0
- symfony/dependency-injection: ~2.3|~3.0
- symfony/http-kernel: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-22 15:42:30 UTC
README
Features
- Provides a datatrans implementation within symfony
Requirements
- PHP 5.3+
Installation
Through Composer
{
"require": {
"ibrows/datatrans-bundle": "dev-master@dev"
}
"repositories": [
{
"type": "vcs",
"url": "git@codebasehq.com:ibrows/ibrowsch/datatransbundle.git"
}
]
}
Advanced Installation
Replace Logger
You can use each psr-3
implementation, create your own service and add its id to the bundle configuration.
ibrows_data_trans:
logger: my_logger_serviceid # or logger if you like symfony default
Replace Validator
Create your own service and add its id to the bundle configuration.
ibrows_data_trans:
logger: my_validator_serviceid # or logger if you like symfony default
Usage
Authorization
/** @var Ibrows\DataTrans\Api\Authorization\Add\Authorization $authorization */
$authorization = $container->get('ibrows.datatrans.service.authorization');
For details, watch the datatrans library