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 docs mentioning UserInterface in action args#7060

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

Merged
wouterj merged 1 commit intosymfony:masterfromlinaori:feature/user-resolver
Nov 19, 2016

Conversation

@linaori
Copy link
Contributor

Added notes about theUserInterface added insymfony/symfony#18510, was waiting for the in-deprecation of thegetUser() method:symfony/symfony#19452.


After authentication, the ``User`` object of the current user can be accessed
via the ``security.token_storage`` service. From inside a controller, this will
look like::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this paragraph needs to be changed

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What do you suggest? It's still correct

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Indeed, sorry. The paragraph is a bit confusing, but correct.

security.rst Outdated
your:ref:`user provider<security-user-providers>`.

..versionadded::3.2
The functionality to get the user via the method signature was added in 3.2,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

"was introduced in Symfony 3.2. You can still retrieve it by [...]"

@wouterj
Copy link
Member

status: needs work

Thanks for the docs PR!

@wouterj
Copy link
Member

👍
status: reviewed

..versionadded::3.2
The functionality to get the user via the method signature was introduced in
Symfony 3.2. You can still retrieve it by calling ``$this->getUser()`` if you
extend the:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[...] the Controller class.

{
// $user is null when not logged-in or anon.
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this blank line should be removed

@wouterjwouterj merged commit7849fa2 intosymfony:masterNov 19, 2016
wouterj added a commit that referenced this pull requestNov 19, 2016
This PR was merged into the master branch.Discussion----------Added docs mentioning UserInterface in action argsAdded notes about the `UserInterface` added insymfony/symfony#18510, was waiting for the in-deprecation of the `getUser()` method:symfony/symfony#19452.Commits-------7849fa2 Added docs mentioning UserInterface in action args
wouterj added a commit that referenced this pull requestNov 19, 2016
@wouterj
Copy link
Member

Thanks@iltar! I've applied the feedback from@xabbuh inf0db5af and merged this PR.

@linaori
Copy link
ContributorAuthor

Ah thanks! I completely forgot about the reply

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@wouterjwouterjwouterj approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

4 participants

@linaori@wouterj@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp