You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it sets request attributes, which we can use later
do not add the getUser static method
Instead, add a userFromCurrentRequest() method to SudoUserService
public function __construct(
private RequestStack $requestStack,
);
public function userFromCurrentRequest(): AuthUser {
$request = $this->requestStack->...
// get from attributes
// assert type
return $user;
}