-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
YAML dumper flags #6226
Copy link
Copy link
Closed
Labels
YamlactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.
Milestone
Metadata
Metadata
Assignees
Labels
YamlactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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_OBJECTtoggles 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_MAPreplace the previous boolean arguments of the YAML parser ([Yaml] introduce flags to customize the parser behavior symfony#17730)Yaml::DUMP_EXCEPTION_ON_INVALID_TYPEreplaces the old boolean parameter ([Yaml] dumper flag for enabling exceptions on invalid type symfony#17743)DateTimeinstances ([Yaml] support to parse and dump DateTime objects symfony#17836)