Permalink
Commits on Nov 8, 2011
  1. merged branch ericclemmons/2295-serializer-normalizable-traversable (…

    fabpot committed Nov 8, 2011
    …PR #2578)
    
    Commits
    -------
    
    7346896 Changed Serialized#supportsNormalization to PRIVATE
    e851efc Updated SerializerTest with "normalizeTraversable" & "testNormalizeGivesPriorityToInterfaceOverTraversable"
    d789f94 Serializer#normalize gives precedence to objects that support normalization
    9e6ba9a Added protected Serializer#supportsNormalization
    
    Discussion
    ----------
    
    [Serializer] `normalize` should use supported normalizer before Traversable
    
    Bug fix: yes
    Feature addition: no
    Backwards compatibility break: no (discussion needed)
    Symfony2 tests pass: yes
    Fixes the following tickets: #2295
    
    **Same as PR #2539, except rebased onto `2.0`**
    
    Should I abstract out a `supportsDenormalization` function just for symmetry?
  2. Added protected Serializer#supportsNormalization

    ericclemmons committed Nov 2, 2011
    This is very useful for cleaning up the logic in Serializer#normalize
    and allow easy checking of both the cache & stored normalizers
Commits on Nov 2, 2011
Commits on Nov 1, 2011
Commits on Oct 29, 2011
  1. removed unused use statements

    fabpot committed Oct 29, 2011
Commits on Sep 26, 2011
  1. [composer] add composer.json

    igorw committed Sep 24, 2011
  2. Replace deprecated key_exists alias

    laurentb committed with fabpot Sep 26, 2011
    From the PHP manual of array_key_exists:
        For backward compatibility, the following deprecated alias
        may be used: key_exists().
Commits on Sep 9, 2011
Commits on Aug 12, 2011
  1. Added $format in serialize() method, to keep consistence and give a h…

    Oncle Tom committed Aug 12, 2011
    …int to the normalizer.
Commits on Jul 28, 2011
Commits on Jun 23, 2011
  1. fixed CS

    fabpot committed Jun 23, 2011
Commits on Jun 13, 2011
  1. fixed CS

    fabpot committed Jun 13, 2011
Commits on Jun 9, 2011
  1. marked public api

    lsmith77 committed Jun 9, 2011
  2. cosmetic tweak

    lsmith77 committed Jun 9, 2011
  3. handle non objects

    lsmith77 committed Jun 6, 2011
  4. added Constructor

    lsmith77 committed May 29, 2011
  5. notice fixes

    lsmith77 committed May 28, 2011
  6. typo fixes

    lsmith77 committed May 27, 2011
  7. removed redundant management of encoders and decoders, aka assume all…

    lsmith77 committed May 27, 2011
    … decoders are also encoders
    
    anything else is a total edge case that doesnt break with this change. it just means that for that edge case it will not be possible to "statically" determine if the encoder doesnt actually support encoding.
  8. expand interface

    lsmith77 committed May 27, 2011
    actually the main methods I am looking for is hasDecoder() and getEncoder() to be able to check if there is a Decoder to decode the Request body as well as if the encoder implements the TemplatingAwareInterface
Commits on Jun 8, 2011
  1. fixed CS

    fabpot committed Jun 8, 2011