Why not use the symfony CsvEncoder?

Created on 11 June 2018, over 6 years ago
Updated 16 November 2023, about 1 year ago

Problem/Motivation

I was looking at a CSV export for views and was wondering why it wasn't possible with core out of the box. It seems the version of symfony/serializer we ship with already has CsvEncoder.

With a bit of digging, it seems all I needed to get this working was an entry in services.yml:

  serializer.encoder.csv:
    class: Symfony\Component\Serializer\Encoder\CsvEncoder
    tags:
      - { name: encoder, priority: 21, format: 'csv' }

Is there a reason not to use symfony/serializer in this module? Is there also a reason we don't simply add this in core too?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia Sam152

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024