]> Raphaël G. Git Repositories - userbundle/commitdiff
Fix replacement of getUsername by getUserIdentifier in symfony 5.3+
authorRaphaël Gertz <git@rapsys.eu>
Wed, 8 Sep 2021 16:36:14 +0000 (18:36 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 8 Sep 2021 16:36:14 +0000 (18:36 +0200)
Entity/User.php

index 4393db6b4c4d996f35d10a489d24f36dd54bdb66..e1693cc06a2934ba21db9cc50745a83b143d0cd2 100644 (file)
@@ -401,7 +401,7 @@ class User implements UserInterface, \Serializable {
        /**
         * {@inheritdoc}
         */
-       public function getUsername(): string {
+       public function getUserIdentifier(): string {
                return $this->mail;
        }