Skip to content

Introduce YAML dumper flags #17520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xabbuh opened this issue Jan 25, 2016 · 5 comments
Closed

Introduce YAML dumper flags #17520

xabbuh opened this issue Jan 25, 2016 · 5 comments

Comments

@xabbuh
Copy link
Member

xabbuh commented Jan 25, 2016

Frequently we get requests asking for how specifc object structures should be dumped to YAML (for examples, see #16266 and #17391, but there are more of them). We always were reluctant to implement these features as they would either have meant BC breaks (because of semantic changes to the dumped YAML) or because the semantics did not change (changes were merely aesthetic).

Maybe it's time we break with this and introduce dumper flags that control how YAML strings are dumped (similar to what was recently done for the VarDumper component in #17305). This would allow users to influence the dumped YAML without requiring us to introduce lots of additional parameters (the $objectSupport argument could be replaced with the dumper flags argument).

@fabpot
Copy link
Member

fabpot commented Jan 25, 2016

👍

@xabbuh
Copy link
Member Author

xabbuh commented Jan 27, 2016

see #17578

@beni0888
Copy link

I'd like to work on this feature. Can I or is there already some work in progress?

@xabbuh
Copy link
Member Author

xabbuh commented Jan 28, 2016

@beni0888 You can take a look at #17578 which does the job.

@beni0888
Copy link

👍

xabbuh added a commit that referenced this issue Feb 5, 2016
…bbuh)

This PR was merged into the 3.1-dev branch.

Discussion
----------

[Yaml] dump customization option with dumper flags

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #17520
| License       | MIT
| Doc PR        | TODO

Commits
-------

286103b [Yaml] dump customization option with dumper flags
@xabbuh xabbuh closed this as completed Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants