UserInterface::eraseCredentials\FOS\UserBundle\Model\User::eraseCredentials[@final](https://github.com/final)Full Changelog: https://github.com/FriendsOfSymfony/FOSUserBundle/compare/v3.3.0...v3.4.0
Added support for Symfony 6
AbstractController (but extending the controllers is not officially supported anymore).Symfony\Contracts\EventDispatcher\Event instead of Symfony\Component\EventDispatcher\EventSymfony\Component\Security\Core\User\AdvancedUserInterface methods from our UserInterfaceisAccountNonLocked method of the AdvancedUserInterface. Projects customizing isAccountNonLocked for that purpose should instead register their own listener for the FOSUserEvents::RESETTING_RESET_REQUEST event to set a response instead of processing the request.\FOS\UserBundle\Model\User::serialize and \FOS\UserBundle\Model\User::unserialize final. Child classes needing to extend the serialization must override __serialize and __unserialize instead.\FOS\UserBundle\Event\GetResponseNullableUserEvent no longer inherits from \FOS\UserBundle\Event\GetResponseUserEvent and \FOS\UserBundle\Event\UserEvent as that was breaking variance rules.FOS\UserBundle\Model\User now have return types (in methods where Symfony 6 requires them)fos_user.mailer.twig_swift or a custom mailer service.FOS\UserBundle\Mailer\MailerInterfaceUserInterface being deprecated in static analyzers\FOS\UserBundle\Event\GetResponseNullableUserEvent::getUserAdvancedUserInterface anymore.SessionInterface.user_checker into LoginManager.fos_user.from_email configuration values.UserManager::getRepository() instead of UserManager::$repository.UserManager::getClass() instead of UserManager::$class.ResettingController for a better token lifetime approximation.@-based Twig syntax for templates.DateUtil class.UserManager.confirmation_token field.checkPostAuth by checkPreAuth in AuthenticationListener.ResettingController::getObfuscatedEmail has been removed.UserManager::refreshUser.UserManager::loadUserByUsername.UserManager::supportsClass.expired and credentialsExpired including corresponding methods.Initializer constructor has changed.LoginManager constructor has changed.UserListener constructor has changed.UserManager constructor has changed.resetting.request.invalid_username has been removed.salt field of the User class is now nullable.UserProvider::refreshUser()Reverted the removed of the expired and credentialsExpired properties as the BC break could lead to corrupted objects being created if server sessions are not cleared when upgrading the bundle.
One of the BC break in this PR could cause corrupted objects to be created when unserializing the session, and got reverted. Use alpha3 instead.
UserInterface::isUser has been removed as it was used only by the old validation logic removed a long time ago.FOSUserBundle:Security:login.html.twig template now receives an AuthenticationException in the error
variable rather than an error message.http://friendsofsymfony.github.io/schema/dic/userUserInterface::getId.expired and credentialsExpired including corresponding methods. This may break code,
makes use of this methods, extending classes, and/or existing installations because of missing mappings for required db fields.How can I help you explore Laravel packages today?