Skip to content
Commits on Mar 6, 2015
  1. @dunglas
Commits on Mar 2, 2015
  1. @nicolas-grekas
Commits on Feb 2, 2015
  1. @dunglas

    [Serializer] Update changelog

    dunglas committed
Commits on Sep 24, 2014
  1. @fabpot

    feature #9708 [Serializer] PropertyNormalizer: a new normalizer that …

    fabpot committed
    …maps an object's properties to an array (mnapoli)
    
    This PR was merged into the 2.6-dev branch.
    
    Discussion
    ----------
    
    [Serializer] PropertyNormalizer: a new normalizer that maps an object's properties to an array
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets |
    | License       | MIT
    | Doc PR        | if PR is deemed mergeable, I'll write the docs
    
    This PR adds a new Normalizer for the Serializer component: **`PropertyNormalizer`**.
    
    Currently the only normalizer is `GetSetMethodNormalizer`, which calls getters and setters. This new serializer uses the properties values directly.
    
    This is especially useful if you write a webservice and take/return very simple DTO (Data Transfer Objects) which role is only to act like a "named" `stdClass`. Every property is public (the class doesn't contain any logic), and mapping that to an array is pretty easy.
    
    This normalizer takes into account public, but also *private* and *protected* properties.
    
    FYI I've based most of the code of `GetSetMethodNormalizer`.
    
    Commits
    -------
    
    78ceed1 [Serializer] Added PropertyNormalizer, a new normalizer that maps an object's properties to an array
Commits on Mar 3, 2014
  1. @tiraeth @fabpot
Commits on Dec 28, 2013
  1. @fabpot

    Json encoder classes now throws UnexpectedValueException as XML classes

    Rodrigo Díez Villamuera committed with fabpot
Commits on Dec 10, 2013
  1. @mnapoli

    [Serializer] Added PropertyNormalizer, a new normalizer that maps an …

    mnapoli committed
    …object's properties to an array
Commits on Aug 2, 2013
  1. @benji07 @fabpot
Commits on Mar 23, 2013
  1. @fabpot
Commits on Jan 19, 2013
  1. @fabpot

    fixed markup

    fabpot committed
Commits on Jan 18, 2013
  1. @beberlei
Commits on Apr 26, 2012
  1. @fabpot

    [Serializer] added CHANGELOG

    fabpot committed
Something went wrong with that request. Please try again.