We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fbce4d + 1ccb6ba commit 10dd6c0Copy full SHA for 10dd6c0
AppVariable.php
@@ -16,6 +16,7 @@
16
use Symfony\Component\HttpFoundation\Session\Session;
17
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
18
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
19
+use Symfony\Component\Security\Core\User\UserInterface;
20
21
/**
22
* Exposes some Symfony parameters and services as an "app" global variable.
@@ -68,7 +69,7 @@ public function getToken(): ?TokenInterface
68
69
*
70
* @see TokenInterface::getUser()
71
*/
- public function getUser(): ?object
72
+ public function getUser(): ?UserInterface
73
{
74
if (null === $tokenStorage = $this->tokenStorage) {
75
throw new \RuntimeException('The "app.user" variable is not available.');
0 commit comments