Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 3, 2015
  1. @fabpot

    minor #13818 [Serializer] Test that normalizers ignore non-existing a…

    fabpot authored
    …ttributes. (dunglas)
    
    This PR was squashed before being merged into the 2.7 branch (closes #13818).
    
    Discussion
    ----------
    
    [Serializer] Test that normalizers ignore non-existing attributes.
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  |no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | n/a
    | License       | MIT
    | Doc PR        | n/a
    
    Test the behavior of normalizers when an attribute doesn't exist.
    
    Commits
    -------
    
    df0fe30 [Serializer] Test that normalizers ignore non-existing attributes.
  2. @dunglas @fabpot
  3. @fabpot

    minor #13827 [Serializer] Fix ClassMetadataFactory PHPDoc (dunglas)

    fabpot authored
    This PR was merged into the 2.7 branch.
    
    Discussion
    ----------
    
    [Serializer] Fix ClassMetadataFactory PHPDoc
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | n/a
    | License       | MIT
    | Doc PR        | n/a
    
    Commits
    -------
    
    0dba547 [Serializer] Fix ClassMetadataFactory PHPDoc
  4. @fabpot

    minor #13819 [Serializer] Optimize GetSetMethodNormalizer and Propert…

    fabpot authored
    …yNormalizer (dunglas)
    
    This PR was merged into the 2.7 branch.
    
    Discussion
    ----------
    
    [Serializer] Optimize GetSetMethodNormalizer and PropertyNormalizer
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | n/a
    | License       | MIT
    | Doc PR        | n/a
    
    Commits
    -------
    
    c41346b [Serializer] Optimize GetSetMethodNormalizer and PropertyNormalizer
Commits on Mar 2, 2015
  1. @dunglas
  2. @nicolas-grekas
Commits on Mar 1, 2015
  1. @dunglas
Commits on Feb 25, 2015
  1. @dunglas
Commits on Feb 24, 2015
  1. @nicolas-grekas

    Merge branch '2.3' into 2.6

    nicolas-grekas authored
    * 2.3:
      Minor hot fix
      [PROCESS] make sure /dev/tty is readable
      [2.3] require-dev PHPUnit bridge
      [FrameworkBundle] Fixed Shell logo
      [2.3] Update CONTRIBUTING.md
      [2.3][Process] Fixed PhpProcess::getCommandLine() result
      [Console] explicit assertion for ArgvInput::getFirstArgument() with no arguments
      Enforce UTF-8 charset for core controllers
    
    Conflicts:
    	CONTRIBUTING.md
    	src/Symfony/Bridge/Monolog/composer.json
    	src/Symfony/Bundle/FrameworkBundle/composer.json
    	src/Symfony/Bundle/SecurityBundle/composer.json
    	src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php
    	src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
    	src/Symfony/Component/Console/composer.json
    	src/Symfony/Component/Debug/composer.json
    	src/Symfony/Component/DomCrawler/composer.json
    	src/Symfony/Component/EventDispatcher/composer.json
    	src/Symfony/Component/HttpFoundation/composer.json
    	src/Symfony/Component/Security/composer.json
    	src/Symfony/Component/Templating/composer.json
  2. @nicolas-grekas
Commits on Feb 21, 2015
  1. @nicolas-grekas

    Merge branch '2.7'

    nicolas-grekas authored
    * 2.7:
      [PhpUnitBridge] new bridge for testing with PHPUnit
      [FrameworkBundle] Check if templating is enabled.
      [Filesystem] Improve exception message for copy method
      [FrameworkBundle] Made ServerParams a service
      [2.7] [FrameworkBundle] bugfix in configuration for assets
      [FrameworkBundle] Enable assets by default.
      [Form] OptionsResolver 3.0 is not BC anymore
      [TwigBundle] add missing asset dependency
      Add an auto_alias compiler pass
    
    Conflicts:
    	.travis.yml
    	composer.json
    	src/Symfony/Bridge/Doctrine/composer.json
    	src/Symfony/Bridge/Monolog/composer.json
    	src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
    	src/Symfony/Bridge/ProxyManager/composer.json
    	src/Symfony/Bridge/Swiftmailer/composer.json
    	src/Symfony/Bridge/Twig/composer.json
    	src/Symfony/Bundle/DebugBundle/composer.json
    	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
    	src/Symfony/Bundle/FrameworkBundle/composer.json
    	src/Symfony/Bundle/SecurityBundle/composer.json
    	src/Symfony/Bundle/TwigBundle/composer.json
    	src/Symfony/Bundle/WebProfilerBundle/composer.json
    	src/Symfony/Component/BrowserKit/composer.json
    	src/Symfony/Component/ClassLoader/composer.json
    	src/Symfony/Component/Console/composer.json
    	src/Symfony/Component/Debug/composer.json
    	src/Symfony/Component/DependencyInjection/composer.json
    	src/Symfony/Component/DomCrawler/composer.json
    	src/Symfony/Component/EventDispatcher/composer.json
    	src/Symfony/Component/Form/composer.json
    	src/Symfony/Component/HttpFoundation/composer.json
    	src/Symfony/Component/HttpKernel/composer.json
    	src/Symfony/Component/Intl/composer.json
    	src/Symfony/Component/Routing/composer.json
    	src/Symfony/Component/Security/Core/composer.json
    	src/Symfony/Component/Security/Csrf/composer.json
    	src/Symfony/Component/Security/Http/composer.json
    	src/Symfony/Component/Security/composer.json
    	src/Symfony/Component/Serializer/composer.json
    	src/Symfony/Component/Translation/composer.json
    	src/Symfony/Component/Validator/composer.json
Commits on Feb 18, 2015
  1. @nicolas-grekas
Commits on Feb 12, 2015
  1. @fabpot

    Merge branch '2.7'

    fabpot authored
    * 2.7: (26 commits)
      removed Propel bridge from Symfony Core
      [2.7] Added deprecation warning for get request service in controller
      [Serializer] Normalizers can serialize collections and scalars
      [FrameworkBundle] Fix title and placeholder rendering in php form templates.
      [Process] added a deprecation notice
      [TwigBridge] Removed duplicated code from TwigRenderer
      [Translator][Logging] implement TranslatorBagInterface.
      RequestDataCollector - small fix
      renamed composer.phar to composer to be consistent with the Symfony docs
      [FrameworkBundle] bumped min version of Routing to 2.3
      removed composer --dev option everywhere
      fixed a test
      [Console] Fixed output bug, if escaped string in a formatted string.
      “console help” ignores --raw option
      Fix form icon position in web profiler
      [Security] Remove ContextListener's onKernelResponse listener as it is used
      Revert "minor #12652 [HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value (skler)"
      Revert "fixed assertion"
      fixed assertion
      [HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value
      ...
    
    Conflicts:
    	composer.json
    	src/Symfony/Bridge/Propel1/composer.json
    	src/Symfony/Bridge/Twig/composer.json
    	src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php
Commits on Feb 11, 2015
  1. @fabpot

    feature #13500 [Serializer] Normalizers can serialize collections and…

    fabpot authored
    … scalars (dunglas)
    
    This PR was squashed before being merged into the 2.7 branch (closes #13500).
    
    Discussion
    ----------
    
    [Serializer] Normalizers can serialize collections and scalars
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | yes
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | License       | MIT
    | Doc PR       | n/a
    
    Currently, the logic for serializing `array` and scalars is hardcoded in the serializer. This is not possible to have a custom serializer normalizing collections. This a big limitation, for instance it's not possible to create an normalizer creating [Hydra collections](http://www.hydra-cg.com/spec/latest/core/#h-collections) for a PHP array.
    
    This PR fix that.
    
    Commits
    -------
    
    1cf8eb2 [Serializer] Normalizers can serialize collections and scalars
  2. @dunglas @fabpot
  3. @fabpot

    Merge branch '2.6' into 2.7

    fabpot authored
    * 2.6: (21 commits)
      [FrameworkBundle] Fix title and placeholder rendering in php form templates.
      [TwigBridge] Removed duplicated code from TwigRenderer
      [Translator][Logging] implement TranslatorBagInterface.
      RequestDataCollector - small fix
      renamed composer.phar to composer to be consistent with the Symfony docs
      [FrameworkBundle] bumped min version of Routing to 2.3
      removed composer --dev option everywhere
      fixed a test
      [Console] Fixed output bug, if escaped string in a formatted string.
      “console help” ignores --raw option
      Fix form icon position in web profiler
      [Security] Remove ContextListener's onKernelResponse listener as it is used
      Revert "minor #12652 [HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value (skler)"
      Revert "fixed assertion"
      fixed assertion
      [HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value
      fixed URL
      Add reference to documentation in FormEvents phpdocs
      [YAML] Fix one-liners to work with multiple new lines
      Keep "pre" meaning for var_dump quick-and-dirty debug
      ...
    
    Conflicts:
    	src/Symfony/Bridge/Twig/composer.json
    	src/Symfony/Bundle/FrameworkBundle/composer.json
    	src/Symfony/Component/Security/Http/Firewall/ContextListener.php
    	src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php
  4. @fabpot

    Merge branch '2.3' into 2.6

    fabpot authored
    * 2.3:
      [FrameworkBundle] Fix title and placeholder rendering in php form templates.
      RequestDataCollector - small fix
      renamed composer.phar to composer to be consistent with the Symfony docs
      [FrameworkBundle] bumped min version of Routing to 2.3
      removed composer --dev option everywhere
      fixed a test
      [Console] Fixed output bug, if escaped string in a formatted string.
      [Security] Remove ContextListener's onKernelResponse listener as it is used
      Revert "minor #12652 [HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value (skler)"
      Revert "fixed assertion"
      fixed assertion
      [HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value
      fixed URL
      Add reference to documentation in FormEvents phpdocs
      [YAML] Fix one-liners to work with multiple new lines
      Keep "pre" meaning for var_dump quick-and-dirty debug
      [Console][Table] Fix cell padding with multi-byte
    
    Conflicts:
    	src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php
    	src/Symfony/Bundle/FrameworkBundle/composer.json
    	src/Symfony/Component/Console/Helper/TableHelper.php
Commits on Feb 8, 2015
  1. @fabpot
Commits on Feb 5, 2015
  1. @fabpot

    Merge branch '2.7'

    fabpot authored
    * 2.7: (61 commits)
      fixxed order of usage
      [2.7] [Form] Replaced calls to array_search() by in_array() where is no need to get the index
      removed the last deprecation notice
      [Serializer] Silent deprecation notice
      removed deprecation notice
      [PropertyAccess] Show property path in all exception messages
      added deprecation notice for HttpCache::createEsi()
      added missing deprecation notice when using the form_enctype function
      [Process] Make test AbstractProcessTest::testStartAfterATimeout useful again
      removed non-sense example
      Fixes small typo.
      [Validator] Remove unnecessary include in tests
      [HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex
      fixed typo
      [Serializer] Use Serializer's LogicException when applicable
      [Serializer] Use autoloader for annotations in tests
      [Validator] fix DOS-style line endings
      Drop useless execution bit
      bumped Symfony version to 2.6.5
      [Serializer] update changelog
      ...
    
    Conflicts:
    	CHANGELOG-2.3.md
    	CHANGELOG-2.5.md
    	CHANGELOG-2.6.md
    	src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php
    	src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php
    	src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeSessionHandler.php
  2. @fabpot

    Merge branch '2.6' into 2.7

    fabpot authored
    * 2.6: (46 commits)
      fixxed order of usage
      [2.7] [Form] Replaced calls to array_search() by in_array() where is no need to get the index
      [Process] Make test AbstractProcessTest::testStartAfterATimeout useful again
      removed non-sense example
      Fixes small typo.
      [Validator] Remove unnecessary include in tests
      [HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex
      fixed typo
      [Validator] fix DOS-style line endings
      Drop useless execution bit
      bumped Symfony version to 2.6.5
      [Serializer] update changelog
      updated VERSION for 2.6.4
      updated CHANGELOG for 2.6.4
      bumped Symfony version to 2.5.11
      [HttpKernel] Added use of provided by #12022 method to instantiate controller class in bundle's controller resolver
      updated VERSION for 2.5.10
      updated CHANGELOG for 2.5.10
      [Validator] Add a Russian translation for invalid charset message
      [2.3] [Validator] spanish translation for invalid charset message
      ...
    
    Conflicts:
    	src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php
    	src/Symfony/Component/HttpKernel/Exception/FatalErrorException.php
    	src/Symfony/Component/HttpKernel/Exception/FlattenException.php
    	src/Symfony/Component/HttpKernel/Kernel.php
    	src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php
    	src/Symfony/Component/Validator/Resources/translations/validators.de.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.en.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.es.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.fr.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.pl.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.ru.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.sl.xlf
Commits on Feb 4, 2015
  1. @dunglas
  2. @fabpot

    minor #13580 [Serializer] Use autoloader for annotations in tests (du…

    fabpot authored
    …nglas)
    
    This PR was merged into the 2.7 branch.
    
    Discussion
    ----------
    
    [Serializer] Use autoloader for annotations in tests
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | License       | MIT
    | Doc PR        | n/a
    
    Commits
    -------
    
    75e2ebf [Serializer] Use autoloader for annotations in tests
Commits on Feb 3, 2015
  1. @dunglas
  2. @dunglas
  3. @dunglas

    [Serializer] update changelog

    dunglas authored
  4. @fabpot

    feature #13120 [Serializer] Name converter support (dunglas)

    fabpot authored
    This PR was merged into the 2.7 branch.
    
    Discussion
    ----------
    
    [Serializer] Name converter support
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | yes
    | Tests pass?   | yes
    | Fixed tickets | #12212
    | License       | MIT
    | Doc PR        | symfony/symfony-docs#4692
    
    This PR adds support for custom property naming strategies to the serializer and provides a built-in NameConverter using this new system: (CamelCase to underscore).
    It handles normalization and denormalization (convert `fooBar` to `foo_bar` when serializing, then from `foo_bar` to `fooBar` when deserializing). It also has a flag to convert only some attributes.
    
    The `setCamelizedAttributes()` is deprecated in favor of this new method (more flexible, allows to rename all attributes of a class and support deserialization) and now uses it internally.
    
    Commits
    -------
    
    86b84a5 [Serializer] Update changelog
    e14854f [Serializer] Name converter support
Commits on Feb 2, 2015
  1. @dunglas

    [Serializer] Update changelog

    dunglas authored
Commits on Feb 1, 2015
  1. @nicolas-grekas

    Merge branch '2.5' into 2.6

    nicolas-grekas authored
    * 2.5:
      [Validator] use 2.5 API in LengthValidator
      fixed id for translations
      bumped Symfony version to 2.3.26
      Dutch translation for invalid charset message
      German translation for invalid charset message
      Add a Slovenian translation for invalid charset message
      Add a Polish translation.
      Test lowest deps with latest 5.3
      updated VERSION for 2.3.25
      update CONTRIBUTORS for 2.3.25
      updated CHANGELOG for 2.3.25
      Fix docblocks to comments
      Inject the correct EventDispatcher instance
      [Validator] reject ill-formed strings
      [Validator] drop grapheme_strlen in LengthValidator
      Unique Entity Validator Invalid Value
      [FrameworkBundle][config] allow multiple fallback locales.
    
    Conflicts:
    	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
    	src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
    	src/Symfony/Component/Validator/Resources/translations/validators.de.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.en.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.fr.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.nl.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.pl.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.sl.xlf
  2. @fabpot

    Merge branch '2.3' into 2.5

    fabpot authored
    * 2.3:
      fixed id for translations
      bumped Symfony version to 2.3.26
      Dutch translation for invalid charset message
      German translation for invalid charset message
      Add a Slovenian translation for invalid charset message
      Add a Polish translation.
      Test lowest deps with latest 5.3
      updated VERSION for 2.3.25
      update CONTRIBUTORS for 2.3.25
      updated CHANGELOG for 2.3.25
      Fix docblocks to comments
      [Validator] reject ill-formed strings
      [Validator] drop grapheme_strlen in LengthValidator
      Unique Entity Validator Invalid Value
      [FrameworkBundle][config] allow multiple fallback locales.
    
    Conflicts:
    	src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php
    	src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php
    	src/Symfony/Component/HttpKernel/Kernel.php
    	src/Symfony/Component/Validator/Resources/translations/validators.de.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.en.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.fr.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.nl.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.pl.xlf
    	src/Symfony/Component/Validator/Resources/translations/validators.sl.xlf
    	src/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php
Commits on Jan 30, 2015
  1. @keradus @fabpot

    Fix docblocks to comments

    keradus authored fabpot committed
Commits on Jan 28, 2015
  1. @dunglas
Commits on Jan 25, 2015
  1. @dunglas
  2. @fabpot

    Merge branch '2.7'

    fabpot authored
    * 2.7:
      fixed tests
      [OptionsResolver] replaced some exception messages
      Added i18n support to ConfirmationQuestion
      [HttpKernel] [WebProfilerBundle] added HTTP status to profiler search result
      [Form] fixed form tests when using 2.7 deps
      [2.3] [HttpFoundation] [MimeTypeGuesser]
      [Routing] merge instead of replace class and method scheme/method annotations
      [TwigBridge] Fix bootstrap rendering when user explicitly use form_label
      Removed dead code and various cleaning
      Removed dead code and various cleaning
      Fixed HtmlDumper with long string
      Removed dead code and various cleaning
      [FrameworkBundle][xsd] added missing logging attribute.
      [Console] Make it clear that the second argument is not about command options.
      Added the '-' character for spaceless on tag start and end to be consistent for block, if, set and for nodes
      [Yaml] fixed parse shortcut Key after unindented collection.
      [Console] fixed #10531
      Make the container considered non-fresh if the environment parameters are changed
    
    Conflicts:
    	src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
    	src/Symfony/Component/HttpKernel/CHANGELOG.md
    	src/Symfony/Component/Process/Process.php
  3. @fabpot

    Merge branch '2.7'

    fabpot authored
    * 2.7:
      [TwigBridge] fixed AppVariable compat with older Symfony versions
      [Validator] re-added support for 2.4 API version in tests
      fixed typos
      fixed typo
      fixed typo
      fixed BC layer
      [SecurityBundle] decouple the logout PHP helper and Twig extension
      [Validator] added Japanese translation for unresolvable host (id: 79)
      [Serializer] Fix PHPDoc
    
    Conflicts:
    	src/Symfony/Bridge/Twig/AppVariable.php
Commits on Jan 21, 2015
  1. @saro0h
Something went wrong with that request. Please try again.