8000 add serialize reference by jrushlow · Pull Request #15039 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

add serialize reference #15039

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 1 commit into from
Apr 7, 2021
Merged

Conversation

jrushlow
Copy link
Contributor

add docs for the new serialize filter provided by TwigBridge

serializer.rst Outdated
@@ -41,6 +41,18 @@ you need it or it can be used in a controller::
}
}

.. versionadded:: 5.3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if this would be best here in the usage block or if it should have its own section. I'll squash the commits after some feedback

@jrushlow jrushlow changed the title add serialize reference [Twig] add serialize reference Feb 27, 2021
@javiereguiluz javiereguiluz added the Waiting Code Merge Docs for features pending to be merged label Mar 1, 2021
@carsonbot carsonbot changed the title [Twig] add serialize reference add serialize reference Mar 1, 2021
@carsonbot carsonbot added this to the next milestone Mar 1, 2021
derrabus added a commit to symfony/symfony that referenced this pull request Mar 2, 2021
This PR was merged into the 5.3-dev branch.

Discussion
----------

[TwigBridge][TwigBundle] Twig serialize filter

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #40227
| License       | MIT
| Doc PR        | symfony/symfony-docs#15039

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.

Commits
-------

abb534a implement twig serialize filter
@wouterj wouterj force-pushed the feature/twig-serialize-filter branch from e869b96 to 91096d5 Compare April 7, 2021 15:26
@wouterj
Copy link
Member
wouterj commented Apr 7, 2021

Thank you Jesse! I've left the usage example in place, but added a bit more context around it. Let me know if you disagree with the changes :)

@wouterj wouterj merged commit 79c31b9 into symfony:5.x Apr 7, 2021
@jrushlow jrushlow deleted the feature/twig-serialize-filter branch April 7, 2021 15:30
@jrushlow
Copy link
Contributor Author
jrushlow commented Apr 7, 2021

Looks good to me @wouterj thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewed Waiting Code Merge Docs for features pending to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0