Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Added app.token to the list of global variables#7191
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
HeahDude commentedNov 29, 2016
@javiereguiluz thanks for documenting this feature! For your point 2, both are used :) The one from the framework bundle is used in php templates. So maybe I should have added it there too... |
xabbuh commentedDec 8, 2016
I like adding the explanations. But I think we should merge them into the |
…eahDude)This PR was merged into the 3.3-dev branch.Discussion----------[FrameworkBundle] Added GlobalVariables::getToken()| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |symfony/symfony-docs#7191 comments| License | MIT| Doc PR |symfony/symfony-docs#7191I propose this feature as bug fix in 3.2, since I don't use the PHP templating I forgot to add the method in the `FrameworkBundle`, to keep it align with the `TwigBridge` in#19991.Is this acceptable or should it go in master?Commits-------099b848 Added GlobalVariables::getToken()
…eahDude)This PR was merged into the 3.3-dev branch.Discussion----------[FrameworkBundle] Added GlobalVariables::getToken()| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |symfony/symfony-docs#7191 comments| License | MIT| Doc PR |symfony/symfony-docs#7191I propose this feature as bug fix in 3.2, since I don't use the PHP templating I forgot to add the method in the `FrameworkBundle`, to keep it align with the `TwigBridge` insymfony/symfony#19991.Is this acceptable or should it go in master?Commits-------099b848 Added GlobalVariables::getToken()
HeahDude commentedApr 1, 2017
I agree with@xabbuh that this should go in 2.7 first. |
javiereguiluz commentedApr 15, 2017
Closing it in favor of#7808. |
…viereguiluz)This PR was merged into the 2.7 branch.Discussion----------Improved the description of the global Twig variablesThis finished#7191. When merged, don't forget to add this description in 3.2 and master:```* ``app.token`` (a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface` object representing the security token)```Commits-------5dafdf6 Improved the description of the global Twig variables
Uh oh!
There was an error while loading.Please reload this page.
Thisfixes#7167.
Two questions:
do you agree adding a short description to each global variable?
requestandsessionare so obvious ... but others may not be so obvious to the reader.The paragraph above this states that:
Are we sure about that class? Shouldn't it be
Symfony\Bridge\Twig\AppVariableinstead?Thanks!