🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@jrushlow
Copy link
Contributor

add docs for the new serialize filter provided by TwigBridge

serializer.rst Outdated
}
}

.. 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