Skip to content

Document twig functions on impersonation #19098

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
Oct 30, 2023
Merged

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Oct 30, 2023

i am updating one of my app to 6.4 and also reading some https://symfony.com/blog/category/living-on-the-edge/7.0-6.4
found this was not yet documented
from https://symfony.com/blog/new-in-symfony-6-4-impersonation-utilities

edit: following code PR comment on Symfony-docs repo, found #18966
to me this is uselefull here as well as more "usage dev doc" instead of "TOC doc", wdyt?

FYO when googling "symfony user switch" the first link is the page I am proposing to edit

thx

@carsonbot carsonbot added this to the 6.4 milestone Oct 30, 2023
.. tip::

You can leverage the Twig function ``impersonation_exit_path('/somewhere')``

Copy link
Contributor

Choose a reason for hiding this comment

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

lets add the versionadded here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure, as far as I know and can find on GitHub, impersonation_exit_path was added in v5

@OskarStark
Copy link
Contributor

Thank you Antoine.

@OskarStark OskarStark merged commit 0d1e3dc into symfony:6.4 Oct 30, 2023
@94noni 94noni deleted the patch-12 branch October 30, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants