Skip to content

[Translation][2.7] No way to directly send XLIFFFile with Translation Dumper #14881

@Incognito

Description

@Incognito

https://github.com/symfony/Translation/blob/decb41096e98a76e3759fdb042842b2f3838a6a1/Dumper/FileDumper.php

I really want to be able to send a file with Response object, but the format feature is protected and part of the logic to get to the string dump is baked into the file method.

I've resolved this in my code by hard-importing part of the components code and overriding the dump method and getting back the string (which is also kind of ugly and breaks the contract design), but it would be nice if there was a way to do this without writing a file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy