Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
javiereguiluz wants to merge1 commit intosymfony:3.2fromjaviereguiluz:fix_7167

Conversation

@javiereguiluz
Copy link
Member

@javiereguiluzjaviereguiluz commentedNov 28, 2016
edited
Loading

Thisfixes#7167.


Two questions:

  1. do you agree adding a short description to each global variable?request andsessionare so obvious ... but others may not be so obvious to the reader.

  2. The paragraph above this states that:

The ``app`` variable is available everywhere and gives access to many commonly needed objects and values. It is an instance of :class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables`.

Are we sure about that class? Shouldn't it beSymfony\Bridge\Twig\AppVariable instead?

Thanks!

@javiereguiluzjaviereguiluz changed the base branch frommaster to3.2November 28, 2016 15:25
@HeahDude
Copy link
Contributor

@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
Copy link
Member

I like adding the explanations. But I think we should merge them into the2.7 branch first. What do you think?

fabpot added a commit to symfony/symfony that referenced this pull requestDec 13, 2016
…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()
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull requestDec 13, 2016
…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
Copy link
Contributor

I agree with@xabbuh that this should go in 2.7 first.

@javiereguiluz
Copy link
MemberAuthor

Closing it in favor of#7808.

xabbuh added a commit that referenced this pull requestMay 8, 2017
…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
@javiereguiluzjaviereguiluz deleted the fix_7167 branchMay 24, 2018 16:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@javiereguiluz@HeahDude@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp