Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #19991 [TwigBridge] Added access to token from twig AppVariab…
…le (HeahDude) This PR was merged into the 3.2-dev branch. Discussion ---------- [TwigBridge] Added access to token from twig AppVariable | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | TODO In Symfony 2.x we could access the token from `app.security` but now we can only get the user even if it comes from the token storage. This makes mandatory to create a custom twig extension to access it and thus harder to update to symfony 3.x when you need this simple getter in a template where custom tokens are involved (e.g using a ConnectToken from SensioLabs Connect API). I hope this little feature will be part of 3.2 :) Commits ------- efd3e2d Added access to token from twig AppVariable
- Loading branch information
Showing
3 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters