+
+ /**
+ * {@inheritdoc}
+ */
+ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $hash): void {
+ //Set new hashed password
+ $user->setPassword($hash);
+
+ //Flush data to database
+ $this->getEntityManager()->flush();
+ }