Skip to content

Commit

Permalink
minor #35186 [FrameworkBundle] Fix getUser() phpdoc in AbstractContro…
Browse files Browse the repository at this point in the history
…ller (natewiebe13)

This PR was merged into the 5.0 branch.

Discussion
----------

[FrameworkBundle] Fix getUser() phpdoc in AbstractController

| Q             | A
| ------------- | ---
| Branch?       | 5.0
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #35185
| License       | MIT
| Doc PR        | N/A

This imports the `Symfony\Component\Security\Core\User\UserInterface` as the docs state that it returns `UserInterface` but doesn't use a FQN or import the class. This makes `getUser()` appear to return `Symfony\Bundle\FrameworkBundle\Controller\UserInterface`

Commits
-------

bba9fd6 [FrameworkBundle] Fix getUser() phpdoc in AbstractController
  • Loading branch information
nicolas-grekas committed Jan 4, 2020
2 parents f673cdc + bba9fd6 commit 905db59
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -38,6 +38,7 @@
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Csrf\CsrfToken;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Symfony\Component\Serializer\SerializerInterface;
Expand Down

0 comments on commit 905db59

Please sign in to comment.