Skip to content

Commit c193ac6

Browse files
minor #35186 [FrameworkBundle] Fix getUser() phpdoc in AbstractController (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 ------- bba9fd6ccf [FrameworkBundle] Fix getUser() phpdoc in AbstractController
2 parents daaeb05 + 3443e22 commit c193ac6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Controller/AbstractController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
3939
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
4040
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
41+
use Symfony\Component\Security\Core\User\UserInterface;
4142
use Symfony\Component\Security\Csrf\CsrfToken;
4243
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
4344
use Symfony\Component\Serializer\SerializerInterface;

0 commit comments

Comments
 (0)