-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBridge][TwigBundle] Twig serialize filter #40323
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ad5255f
to
c63e55c
Compare
travis failure appears to be unrelated to this PR. |
Simple question. If serialize will be added, why not unserialize too? Second question: why only objects we can serialize? |
jrushlow
commented
Feb 27, 2021
Unserialize has not really a use case 🧐 |
41337fe
to
a86eec5
Compare
0cd8f34
to
46cd09d
Compare
|
weaverryan
reviewed
Feb 27, 2021
4b9eee6
to
663caa0
Compare
derrabus
reviewed
Feb 27, 2021
cadbec7
to
67b3b2c
Compare
stof
reviewed
Mar 1, 2021
src/Symfony/Bridge/Twig/Tests/Extension/SerializerExtensionTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/Twig/Tests/Extension/SerializerExtensionTest.php
Outdated
Show resolved
Hide resolved
67b3b2c
to
9d65355
Compare
derrabus
approved these changes
Mar 1, 2021
yceruto
reviewed
Mar 1, 2021
f9e3aba
to
abb534a
Compare
this should be all set now |
yceruto
approved these changes
Mar 2, 2021
weaverryan
approved these changes
Mar 2, 2021
Thank you @jrushlow. |
Merged
javiereguiluz
added a commit
to symfony/symfony-docs
that referenced
this pull request
Sep 22, 2022
… filter (94noni) This PR was squashed before being merged into the 5.4 branch. Discussion ---------- Frontend Encore document passing data via serialize twig filter I think this feature added in v5.3 is a great addition, specialy in this doc article ref https://symfony.com/blog/new-in-symfony-5-3-twig-serialize-filter + symfony/symfony#40323 Cc `@jrushlow` `@weaverryan` Commits ------- 2a1314e Frontend Encore document passing data via serialize twig filter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new
serialize
filter for Twig utilizing the Serializer component. As suggested in #40227 - would allow you to pass a serialized object to the front end without needing to make an ajax call.