Support Symfony 2.2 PropertyAccess with BC for 2.1 (closes #218) #255

Merged
merged 1 commit into from Mar 27, 2013
Commits on Mar 27, 2013
  1. @jmikola

    Support Symfony 2.2 PropertyAccess with BC for 2.1 (closes #218)

    jmikola committed Mar 27, 2013
    By abstracting the property access, we can easily support Symfony 2.1's Form component and 2.2's PropertyAccess component.
    
    The PropertyAccessor service will be injected into transformers if it is available. Tests were modified to do the same, and expect the appropriate exception depending on which implementation is available.