-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Added GlobalVariables::getToken() #20773
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
Conversation
While I agree that this is nice for consistency, I do not agree with it being a bug fix. So I would vote for merging this into the |
/** | ||
* Returns the current user. | ||
* | ||
* @return mixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it were to be removed, shouldn't this be removed in 2.7 instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's just that we don't add such annotations anymore. Old code should be kept as is.
Should be merged in master. |
69857e5
to
543ebd4
Compare
543ebd4
to
099b848
Compare
Fixed and rebased on master. |
|
||
if (!$token = $tokenStorage->getToken()) { | ||
/** | ||
* Returns the current user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you removed the return type, you could IMO remove the whole docblock.
Thank you @HeahDude. |
…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#7191 I 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()
I 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 theTwigBridge
in #19991.Is this acceptable or should it go in master?