-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Add context option to configure the indentation of nested nodes for YamlEncoder
#47243
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
Conversation
d261481 to
27b9dde
Compare
5e5675c to
a5e7572
Compare
|
@dunglas does this approach make sense? and would you have an idea what i got wrong with the service configuration? |
|
Hey! I think @mtarld has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
a5e7572 to
d8cf930
Compare
d8cf930 to
ee371d1
Compare
|
I've cherry-picked the changes on JsonEncoder in c693778, on top of #45554, branch 5.4 I've updated the patch attached to this PR to keep only the part related to YamlEncoder. I'll let you update the PR description if you don't mind, also add tests and a line in the changelog of the component? |
YamlEncoder
ea26eba to
3257ef6
Compare
…d nodes for YamlEncoder
3257ef6 to
f1dfb8f
Compare
|
thanks. i rebased on 6.2 and updated the commit. i think the build errors are not related to my change but broken in the 6.2 branch. |
YamlEncoderYamlEncoder
|
Thank you @dbu. |
…serializer (dbu) This PR was merged into the 6.2 branch. Discussion ---------- improve documentation of default_context for the serializer additional info for symfony#17310 fix symfony#17306 the code example will only work once symfony/symfony#47243 is merged Commits ------- 852aa11 document default context for the serializer
Allow to configure the amount of spaces for indentation in Yaml Dumper.