A
Size: a a a
A
СВ
DD
$user->removeRole(User::ROLE_SEMI_AUTHENTICATED);
$user->addRole(User::ROLE_AUTHENTICATED);
$this->userManager->updateUser($user);
$newToken = new PostAuthenticationGuardToken(
$user,
'authenticate',
[User::ROLE_AUTHENTICATED, User::ROLE_DEFAULT]
);
$this->tokenStorage->setToken('authenticate', $newToken->getProviderKey());
return $this->redirectToRoute('profile');
ИЛ
$user->removeRole(User::ROLE_SEMI_AUTHENTICATED);
$user->addRole(User::ROLE_AUTHENTICATED);
$this->userManager->updateUser($user);
$newToken = new PostAuthenticationGuardToken(
$user,
'authenticate',
[User::ROLE_AUTHENTICATED, User::ROLE_DEFAULT]
);
$this->tokenStorage->setToken('authenticate', $newToken->getProviderKey());
return $this->redirectToRoute('profile');
DD
Ш
ИЛ
AD
ИЛ
AD
ИЛ
AV
VK
VK
VK
AV