2017 © Pedro Peláez
 

library type-converter-bundle

image

ivanche/type-converter-bundle

  • Thursday, December 1, 2016
  • by ivanche
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Symfony Type Converter Bundle

This bundle is built to inject a library type converter., (*1)

Installation

Use composer to intall this bundle, (*2)

composer require ivanche/type-converter-bundle

Configuration

It have a few options., (*3)

ivanche_type_converter:
    auto_mapping: false
    strict: true

Options:

auto_mapping: boolean (_true_|false)

If the converter implements Ivanche\Converter\AutoMappingInterface, we add methodCall setAutoMapping to definition of your converter., (*4)

If auto_mapping is true, converter try to set public properties(or properties with public getter/setter) to target from source., (*5)

strict: boolean (_true_|false)

If the converter implements Ivanche\Converter\AutoMappingInterface, we add methodCall setStrictMode to definition of your converter., (*6)

When strict is true, converter throw exception Ivanche\Exception\UnsupportedSourcePropertyException if automapping try to set public properties(or properties with public getter/setter) from source which don't exist in target., (*7)

The Versions

01/12 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cherkasov Ivan

01/12 2016

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cherkasov Ivan