Skip to content

Conversation

linaori
Copy link
Contributor

@linaori linaori commented Oct 15, 2016

Added notes about the UserInterface added in symfony/symfony#18510, was waiting for the in-deprecation of the getUser() 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
Contributor Author

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

wouterj commented Oct 16, 2016

status: needs work

Thanks for the docs PR!

@linaori linaori force-pushed the feature/user-resolver branch from d68c5d7 to 7849fa2 Compare November 8, 2016 16:50
@wouterj wouterj added this to the 3.2 milestone Nov 8, 2016
@wouterj
Copy link
Member

wouterj commented Nov 9, 2016

👍
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

@wouterj wouterj merged commit 7849fa2 into symfony:master Nov 19, 2016
wouterj added a commit that referenced this pull request Nov 19, 2016
This PR was merged into the master branch. Discussion ---------- Added docs mentioning UserInterface in action args Added notes about the `UserInterface` added in symfony/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 request Nov 19, 2016
@wouterj
Copy link
Member

wouterj commented Nov 19, 2016

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

@linaori
Copy link
Contributor Author

linaori commented Nov 20, 2016

Ah thanks! I completely forgot about the reply

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

4 participants