Skip to content

Create A SecurityTokenValueArgument #20231

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

Closed
manuelj555 opened this issue Oct 17, 2016 · 2 comments
Closed

Create A SecurityTokenValueArgument #20231

manuelj555 opened this issue Oct 17, 2016 · 2 comments

Comments

@manuelj555
Copy link

Hi, I see that the feature #19452 was deprecated.

So, What do you think in favor of create a SecurityTokenValueArgument?

The use case for this is:

public function anyAction(Request $request, TokenInterface $token) {
    $user = $token->getUser();
}

This is useful when the controller does not extends the default base Controller class.

Sorry for my bad english :(

@linaori
Copy link
Contributor

linaori commented Oct 17, 2016

The feature was actually not deprecated at all and still works, only the deprecation of the getUser() function in the controller was removed.

@manuelj555
Copy link
Author

manuelj555 commented Oct 17, 2016

Ok, sorry for the confusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants