Skip to content
Commits on May 26, 2016
  1. @fabpot

    Merge branch '3.1'

    * 3.1:
      [Console] SymfonyStyle: Align multi-line/very-long-line blocks
      [Console][DX] Fixed ambiguous error message when using a duplicate option shortcut
      Fix js comment in profiler
      [Ldap] Fixed issue with Entry password attribute containing array of values and made password attribute configurable
      [Serializer][#18837] adding a test
      [Cache] Drop counting hit/miss in ProxyAdapter
      [Serializer] AbstractObjectNormalizer: be sure that isAllowedAttribute is called
      [Serializer] ObjectNormalizer: add missing parameters
    fabpot committed May 26, 2016
Commits on May 25, 2016
  1. @xabbuh
Commits on May 24, 2016
  1. @dunglas @fabpot
  2. @dunglas @fabpot
  3. @fabpot

    Merge branch '3.1'

    * 3.1: (24 commits)
      [Yaml] fix exception contexts
      Added people - person inflection
      People - person singularization
      [Yaml] properly handle unindented collections
      [Serializer] Add test for ignored attributes during denormalization
      chomp newlines only at the end of YAML documents
      Fixed server status command when port has been omitted
      Update UPGRADE FROM 2.x to 3.0
      [Config] Allow schemed path in FileResource
      fix removed commands wording in upgrade file
      Catch \Throwable
      Catch \Throwable
      [DependencyInjection] Avoid generating call_user_func in more cases
      [Validator] Support for DateTimeImmutable
      [YAML] fixed "dump" signature in upgrade file
      [Cache] Rename nonce to version
      [FrameworkBundle] update upgrade instructions
      Use levenshtein level for better Bundle matching
      [WebProfilerBundle] Fix CORS ajax security issues
      remove methods that were needed for PHP 5.3
      ...
    fabpot committed May 24, 2016
  4. @fabpot

    Merge branch '3.0' into 3.1

    * 3.0:
      [Yaml] fix exception contexts
      People - person singularization
      [Yaml] properly handle unindented collections
      [Serializer] Add test for ignored attributes during denormalization
      chomp newlines only at the end of YAML documents
      Fixed server status command when port has been omitted
      Update UPGRADE FROM 2.x to 3.0
      fix removed commands wording in upgrade file
      Catch \Throwable
      Catch \Throwable
      [DependencyInjection] Avoid generating call_user_func in more cases
      [Validator] Support for DateTimeImmutable
      [FrameworkBundle] update upgrade instructions
      Use levenshtein level for better Bundle matching
      [WebProfilerBundle] Fix CORS ajax security issues
      remove methods that were needed for PHP 5.3
      [DX][DI] Make Autowiring exceptions more future friendly
    fabpot committed May 24, 2016
  5. @fabpot

    Merge branch '2.8' into 3.0

    * 2.8:
      [Yaml] fix exception contexts
      People - person singularization
      [Yaml] properly handle unindented collections
      [Serializer] Add test for ignored attributes during denormalization
      chomp newlines only at the end of YAML documents
      Fixed server status command when port has been omitted
      Update UPGRADE FROM 2.x to 3.0
      fix removed commands wording in upgrade file
      Catch \Throwable
      Catch \Throwable
      Use levenshtein level for better Bundle matching
      [WebProfilerBundle] Fix CORS ajax security issues
      [DX][DI] Make Autowiring exceptions more future friendly
    fabpot committed May 24, 2016
  6. @fabpot

    Merge branch '2.7' into 2.8

    * 2.7:
      [Yaml] fix exception contexts
      People - person singularization
      [Yaml] properly handle unindented collections
      [Serializer] Add test for ignored attributes during denormalization
      chomp newlines only at the end of YAML documents
      Fixed server status command when port has been omitted
      Update UPGRADE FROM 2.x to 3.0
      Catch \Throwable
      Use levenshtein level for better Bundle matching
      [WebProfilerBundle] Fix CORS ajax security issues
    fabpot committed May 24, 2016
Commits on May 22, 2016
  1. @dunglas
Commits on May 13, 2016
  1. @fabpot

    updated version to 3.2

    fabpot committed May 13, 2016
Commits on Apr 25, 2016
  1. @Ener-Getick
Commits on Apr 20, 2016
  1. @nicolas-grekas

    Merge branch '3.0'

    * 3.0:
      [PropertyAccess] ->getValue() should be read-only
      [VarDumper] Fix dumping type hints for non-existing parent classes
      [Config] Fix XmlUtilsTest namespace
      [Console] [TableHelper] make it work with SymfonyStyle.
      Remove dead code
      [FrameworkBundle] Better output for user in ContainerDebugCommand
      [Routing] add query param if value is different from default
    nicolas-grekas committed Apr 20, 2016
  2. @nicolas-grekas

    Merge branch '2.8' into 3.0

    * 2.8:
      [PropertyAccess] ->getValue() should be read-only
      [VarDumper] Fix dumping type hints for non-existing parent classes
      [Config] Fix XmlUtilsTest namespace
      [Console] [TableHelper] make it work with SymfonyStyle.
      Remove dead code
      [Routing] add query param if value is different from default
    
    Conflicts:
    	src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php
    nicolas-grekas committed Apr 20, 2016
  3. @nicolas-grekas

    Merge branch '2.7' into 2.8

    * 2.7:
      [PropertyAccess] ->getValue() should be read-only
      [VarDumper] Fix dumping type hints for non-existing parent classes
      [Config] Fix XmlUtilsTest namespace
      [Console] [TableHelper] make it work with SymfonyStyle.
      Remove dead code
      [Routing] add query param if value is different from default
    
    Conflicts:
    	src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php
    nicolas-grekas committed Apr 20, 2016
  4. @fabpot

    fixed CS

    fabpot committed Apr 20, 2016
  5. @fabpot

    bug #18589 [Serializer] fix parent class of AbstractNormalizer (xabbuh)

    This PR was merged into the 3.1-dev branch.
    
    Discussion
    ----------
    
    [Serializer] fix parent class of AbstractNormalizer
    
    | Q             | A
    | ------------- | ---
    | Branch?       | master
    | Bug fix?      | yes
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | symfony/symfony#17545 (comment)
    | License       | MIT
    | Doc PR        |
    
    We must maintain the parent class to not break BC.
    
    Commits
    -------
    
    45b9ed9 fix parent class of AbstractNormalizer
    fabpot committed Apr 20, 2016
Commits on Apr 19, 2016
  1. @dunglas

    feature #17660 [Serializer] Integrate the PropertyInfo Component (rec…

    …ursive denormalization and hardening) (mihai-stancu, dunglas)
    
    This PR was merged into the 3.1-dev branch.
    
    Discussion
    ----------
    
    	[Serializer] Integrate the PropertyInfo Component (recursive denormalization and hardening)
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | #16143, #17193, #14844
    | License       | MIT
    | Doc PR        | todo
    
    Integrates the PropertyInfo Component in order to:
    
    * denormalize a graph of objects recursively (see tests)
    * harden the hydratation logic
    
    The hardening part is interesting. Considering the following example:
    
    ```php
    class Foo
    {
        public function setDate(\DateTimeInterface $date)
        {
        }
    }
    
    // initialize $normalizer
    $normalizer->denormalize(['date' => 1234], Foo::class);
    ```
    
    Previously, a PHP error was thrown because the type passed to the setter (an int) doesn't match the one checked with the typehint. With the PropertyInfo integration, an `UnexpectedValueExcption` is throw instead.
    It's especially interesting for web APIs dealing with JSON documents. For instance in API Platform, previously a 500 error was thrown, but thanks to this fix a 400 HTTP code with a descriptive error message will be returned. (/cc @csarrazi @mRoca @blazarecki, it's an alternative to https://github.com/dunglas/php-to-json-schema for protecting an API).
    
    /cc @mihai-stancu
    
    Commits
    -------
    
    5194482 [Serializer] Integrate the PropertyInfo Component
    6b464b0 Recursive denormalize using PropertyInfo
    dunglas committed Apr 19, 2016
  2. @dunglas

    [Serializer] Integrate the PropertyInfo Component

    Recursive denormalization handling and hardening.
    dunglas committed Feb 3, 2016
  3. @theofidry @nicolas-grekas
  4. @xabbuh

    fix parent class of AbstractNormalizer

    We must maintain the parent class to not break BC.
    xabbuh committed Apr 19, 2016
Commits on Apr 18, 2016
  1. @mihai-stancu @dunglas

    Recursive denormalize using PropertyInfo

    - Refactored PR 14844 "Denormalize with typehinting"
    - Now using PropertyInfo to extract type information
    - Updated tests
    - Updated composer.json
    mihai-stancu committed with dunglas Oct 6, 2015
  2. @theofidry

    Remove dead code

    theofidry committed Apr 18, 2016
  3. @dunglas

    feature #17959 [Serializer] Harden the ObjectNormalizer (dunglas)

    This PR was squashed before being merged into the 3.1-dev branch (closes #17959).
    
    Discussion
    ----------
    
    [Serializer] Harden the ObjectNormalizer
    
    | Q             | A
    | ------------- | ---
    | Branch        | master
    | Bug fix?      |  no
    | New feature?  | yes
    | BC breaks?    | yes
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | n/a
    | License       | MIT
    | Doc PR        | n/a
    
    Transform `\TypeError`s to catchable serializer exceptions.
    
    Follows #17738 and completes #17660.
    
    Commits
    -------
    
    26a07fb [Serializer] Harden the ObjectNormalizer
    dunglas committed Apr 18, 2016
  4. @dunglas
Commits on Apr 13, 2016
  1. @joelwurtz
Commits on Mar 31, 2016
  1. @fabpot

    feature #18036 [Serializer] XmlEncoder: Make load flags configurable …

    …(dunglas)
    
    This PR was squashed before being merged into the 3.1-dev branch (closes #18036).
    
    Discussion
    ----------
    
    [Serializer] XmlEncoder: Make load flags configurable
    
    | Q             | A
    | ------------- | ---
    | Branch        | master
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | #17987
    | License       | MIT
    | Doc PR        | todo
    
    Commits
    -------
    
    0826068 [Serializer] XmlEncoder: Make load flags configurable
    fabpot committed Mar 31, 2016
  2. @dunglas @fabpot
Commits on Mar 13, 2016
  1. @xabbuh

    [Serializer] sync changelog file

    xabbuh committed Mar 13, 2016
Commits on Mar 10, 2016
  1. @fabpot

    bug #18072 [serializer][ObjectNormalizer] fixed Undefined attributeNa…

    …me. (aitboudad)
    
    This PR was merged into the 3.1-dev branch.
    
    Discussion
    ----------
    
    [serializer][ObjectNormalizer] fixed Undefined attributeName.
    
    | Q             | A
    | ------------- | ---
    | Branch        | master
    | Bug fix?      | yes
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | ~
    | License       | MIT
    | Doc PR        | ~
    
    Commits
    -------
    
    ee087a1 [serializer][ObjectNormalizer] fixed Undefined attributeName.
    fabpot committed Mar 10, 2016
  2. @aitboudad
  3. @nicolas-grekas

    Merge branch '3.0'

    * 3.0: (28 commits)
      [Console] Fix an autocompletion question helper issue with non-sequentially indexed choices
      [Process] Fix pipes handling
      [Finder] Partially revert #17134 to fix a regression
      Mentioned the deprecation of deep parameters in UPGRADE files
      [HttpKernel] Fix mem usage when stripping the prod container
      [Filesystem] Fix false positive in ->remove()
      [Filesystem] Cleanup/sync with 2.3
      [Validator] Fix the locale validator so it treats a locale alias as a valid locale
      [HttpFoundation] Fix transient test
      [HttpFoundation] Add a dependency on the mbstring polyfill
      [2.7] update readme files for new components
      add readme files where missing
      [2.8] update readme files for new components
      fix lowest TwigBridge deps versions
      reference form type by name on Symfony 2.7
      [EventDispatcher] fix syntax error
      Don't use reflections when possible
      Don't use reflections when possible
      [Form] Update form tests after the ICU data update
      [Intl] Update tests and the number formatter to match behaviour of the intl extension
      ...
    
    Conflicts:
    	src/Symfony/Component/Ldap/README.md
    	src/Symfony/Component/Security/Core/README.md
    	src/Symfony/Component/Security/Csrf/README.md
    	src/Symfony/Component/Security/Http/README.md
    nicolas-grekas committed Mar 10, 2016
  4. @nicolas-grekas

    Merge branch '2.8' into 3.0

    * 2.8: (25 commits)
      [Console] Fix an autocompletion question helper issue with non-sequentially indexed choices
      [Process] Fix pipes handling
      Mentioned the deprecation of deep parameters in UPGRADE files
      [Filesystem] Fix false positive in ->remove()
      [Filesystem] Cleanup/sync with 2.3
      [Validator] Fix the locale validator so it treats a locale alias as a valid locale
      [HttpFoundation] Fix transient test
      [HttpFoundation] Add a dependency on the mbstring polyfill
      [2.7] update readme files for new components
      add readme files where missing
      [2.8] update readme files for new components
      fix lowest TwigBridge deps versions
      reference form type by name on Symfony 2.7
      [EventDispatcher] fix syntax error
      Don't use reflections when possible
      Don't use reflections when possible
      [Form] Update form tests after the ICU data update
      [Intl] Update tests and the number formatter to match behaviour of the intl extension
      [Intl] Update the ICU data to version 55
      [Intl] Fix the update-data.php script in preparation for ICU 5.5
      ...
    
    Conflicts:
    	UPGRADE-2.8.md
    	UPGRADE-3.0.md
    	src/Symfony/Bridge/Twig/composer.json
    	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FragmentRendererPass.php
    	src/Symfony/Component/Console/Helper/DialogHelper.php
    	src/Symfony/Component/Console/Helper/ProgressHelper.php
    	src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php
    	src/Symfony/Component/HttpFoundation/composer.json
    	src/Symfony/Component/Security/Core/README.md
    	src/Symfony/Component/Security/Csrf/README.md
    	src/Symfony/Component/Security/Http/README.md
    	src/Symfony/Component/Validator/Constraints/LocaleValidator.php
    nicolas-grekas committed Mar 10, 2016
Commits on Mar 7, 2016
  1. @nicolas-grekas

    Merge branch '2.7' into 2.8

    * 2.7:
      [HttpFoundation] Fix transient test
      [HttpFoundation] Add a dependency on the mbstring polyfill
      [2.7] update readme files for new components
      add readme files where missing
      fix lowest TwigBridge deps versions
      [EventDispatcher] fix syntax error
      Don't use reflections when possible
      Don't use reflections when possible
      [Form] Update form tests after the ICU data update
      [Intl] Update tests and the number formatter to match behaviour of the intl extension
      [Intl] Update the ICU data to version 55
      [Intl] Fix the update-data.php script in preparation for ICU 5.5
      [Process] Fix memory issue when using large input streams
      Use constant instead of function call.
      fixed test name
      automatically generate safe fallback filename
      [Console] default to stderr in the console helpers
    
    Conflicts:
    	composer.json
    	src/Symfony/Bridge/PhpUnit/README.md
    	src/Symfony/Bridge/Twig/composer.json
    	src/Symfony/Component/Console/Helper/DialogHelper.php
    	src/Symfony/Component/Debug/DebugClassLoader.php
    	src/Symfony/Component/HttpFoundation/composer.json
    	src/Symfony/Component/Security/Acl/README.md
    	src/Symfony/Component/Security/Core/README.md
    	src/Symfony/Component/Security/Csrf/README.md
    	src/Symfony/Component/Security/Http/README.md
    nicolas-grekas committed Mar 7, 2016
  2. @nicolas-grekas

    Merge branch '2.3' into 2.7

    * 2.3:
      [HttpFoundation] Fix transient test
      [HttpFoundation] Add a dependency on the mbstring polyfill
      add readme files where missing
      Don't use reflections when possible
      [Form] Update form tests after the ICU data update
      [Intl] Update tests and the number formatter to match behaviour of the intl extension
      [Intl] Update the ICU data to version 55
      [Intl] Fix the update-data.php script in preparation for ICU 5.5
      Use constant instead of function call.
      fixed test name
      automatically generate safe fallback filename
    
    Conflicts:
    	src/Symfony/Component/Debug/Debug.php
    	src/Symfony/Component/HttpFoundation/composer.json
    	src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php
    nicolas-grekas committed Mar 7, 2016
Commits on Mar 6, 2016
  1. @fabpot

    minor #18021 Don't use reflections when possible (Ener-Getick)

    This PR was merged into the 2.3 branch.
    
    Discussion
    ----------
    
    Don't use reflections when possible
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets |
    | License       | MIT
    | Doc PR        |
    
    Use php functions instead of reflection when possible (to improve a bit the performance).
    
    Commits
    -------
    
    a46270a Don't use reflections when possible
    fabpot committed Mar 6, 2016
Something went wrong with that request. Please try again.