This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Kévin Dunglas e043478ba5
feature #25218 [Serializer] add a constructor arguement to return csv always as collection (Simperfit)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[Serializer] add a constructor arguement to return csv always as collection

| Q             | A
| ------------- | ---
| Branch?       |  4.1
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | #21616
| License       | MIT
| Doc PR        | TODO create a doc PR for the 3 ways of getting csv collection, or a single

Coding in the train again ;).
![img_9980](https://user-images.githubusercontent.com/3451634/33417042-f13063e4-d59f-11e7-8f30-143da768b1d7.JPG)

This is to be able to add a new behaviour to the csv encoder when passing the alwaysAsCollection context key, this will return a collection even if there is only one element.

Commits
-------

d19d05dc5d [Serializer] add a context key to return csv always as collection
2018-02-19 15:04:52 +01:00
..
Asset Merge branch '4.0' 2018-01-03 08:38:11 +01:00
BrowserKit Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Cache Merge branch '4.0' 2018-02-11 18:18:00 +01:00
Config do not mock the container builder in tests 2018-02-14 11:03:57 +01:00
Console Merge branch '4.0' 2018-02-09 16:48:09 +01:00
CssSelector Merge branch '4.0' 2018-02-03 15:58:56 +01:00
Debug Unwrap errors in FlattenException. 2018-02-04 14:22:04 +01:00
DependencyInjection Merge branch '4.0' 2018-02-14 15:11:22 +01:00
DomCrawler Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Dotenv Merge branch '4.0' 2018-01-03 18:15:33 +01:00
EventDispatcher Merge branch '4.0' 2018-02-14 15:11:22 +01:00
ExpressionLanguage Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Filesystem Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Finder Merge branch '4.0' 2018-02-11 18:18:00 +01:00
Form Merge branch '4.0' 2018-02-14 15:11:22 +01:00
HttpFoundation Merge branch '4.0' 2018-02-09 16:48:09 +01:00
HttpKernel Merge branch '4.0' 2018-02-14 15:11:22 +01:00
Inflector Merge branch '4.0' 2018-01-03 18:15:33 +01:00
Intl [Intl] Add polyfill for Locale::canonicalize() 2018-02-12 17:25:54 +01:00
Ldap Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Lock Merge branch '4.0' 2018-02-11 18:18:00 +01:00
OptionsResolver Merge branch '4.0' 2018-01-18 23:19:50 +01:00
Process Merge branch '4.0' 2018-02-12 18:55:29 +01:00
PropertyAccess Merge branch '4.0' 2018-01-03 08:38:11 +01:00
PropertyInfo Merge branch '4.0' 2018-02-14 15:11:22 +01:00
Routing [Routing] Fix same-prefix aggregation 2018-02-17 22:03:38 +01:00
Security Merge branch '4.0' 2018-02-14 15:11:22 +01:00
Serializer feature #25218 [Serializer] add a constructor arguement to return csv always as collection (Simperfit) 2018-02-19 15:04:52 +01:00
Stopwatch Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Templating Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Translation feature #26149 Added support for name on the unit node (Nyholm) 2018-02-15 09:01:21 +01:00
Validator Merge branch '4.0' 2018-02-14 15:11:22 +01:00
VarDumper Merge branch '4.0' 2018-01-31 11:41:42 +01:00
WebLink Merge branch '4.0' 2018-01-03 08:38:11 +01:00
Workflow Merge branch '4.0' 2018-02-14 15:11:22 +01:00
Yaml Merge branch '4.0' 2018-02-11 18:18:00 +01:00