-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
YAML dumper flags #6226
Labels
actionable
Clear and specific issues ready for anyone to take them.
hasPR
A Pull Request has already been submitted for this issue.
Yaml
Milestone
Comments
This was referenced Mar 1, 2016
Has anyone started to work on this one yet? It would be very nice to have this doc! I can try to give it some time this week end if you want. |
@HeahDude Feel free to do so. I didn't work on this yet. You can use this blog post as a starting point. |
2 tasks
wouterj
added a commit
that referenced
this issue
May 21, 2016
This PR was merged into the 2.3 branch. Discussion ---------- Advanced YAML component usage | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | 2.3 > 3.0 (i think) | Fixed tickets | #6524 Prerequisite to #6226 This PR documents the (now deprecated) features for indentation, invalid types and object serialization which have been present since sf 2.3 Commits ------- 3249cbb Advanced YAML component usage
javiereguiluz
added a commit
that referenced
this issue
Feb 7, 2018
Closing as fixed because the last missing flags were documented in #9205. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
actionable
Clear and specific issues ready for anyone to take them.
hasPR
A Pull Request has already been submitted for this issue.
Yaml
symfony/symfony#17578 introduces the possibility to customise the dumped YAML string by passing a bit field of dumper flags.
Symfony 3.1 introduces quite some options that you can use to customise the behaviour of both the parser and the dumper (and also added some more additional features):
Yaml::DUMP_OBJECT
toggles object support in the dumper ([Yaml] dump customization option with dumper flags symfony#17578)Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE
,Yaml::PARSE_OBJECT
, andYaml::PARSE_OBJECT_FOR_MAP
replace the previous boolean arguments of the YAML parser ([Yaml] introduce flags to customize the parser behavior symfony#17730)Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE
replaces the old boolean parameter ([Yaml] dumper flag for enabling exceptions on invalid type symfony#17743)DateTime
instances ([Yaml] support to parse and dump DateTime objects symfony#17836)The text was updated successfully, but these errors were encountered: