From 6d8266998145057bbe9740334e6f07986da362e8 Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Mon, 12 Dec 2022 02:18:40 +0100 Subject: [PATCH] Fix missing LegacyPasswordAuthenticatedUserInterface --- src/Core/User/UserInterface.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/Core/User/UserInterface.php b/src/Core/User/UserInterface.php index 9eac3b0..5dfb821 100644 --- a/src/Core/User/UserInterface.php +++ b/src/Core/User/UserInterface.php @@ -4,7 +4,7 @@ namespace SyliusLabs\Polyfill\Symfony\Security\Core\User; -use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; +use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface; use Symfony\Component\Security\Core\User\UserInterface as SymfonyUserInterface; // Symfony 5.4 @@ -15,22 +15,11 @@ interface UserInterface extends SymfonyUserInterface // Symfony 6 } else { /** + * @link https://github.com/symfony/symfony/blob/6.0/src/Symfony/Component/Security/Core/User/LegacyPasswordAuthenticatedUserInterface.php * @link https://github.com/symfony/symfony/blob/6.0/src/Symfony/Component/Security/Core/User/UserInterface.php - * @link https://github.com/symfony/symfony/blob/6.0/src/Symfony/Component/Security/Core/User/PasswordAuthenticatedUserInterface.php */ - interface UserInterface extends SymfonyUserInterface, PasswordAuthenticatedUserInterface + interface UserInterface extends LegacyPasswordAuthenticatedUserInterface, SymfonyUserInterface { - /** - * Returns the salt that was originally used to hash the password. - * - * This can return null if the password was not hashed using a salt. - * - * This method is deprecated since Symfony 5.3, implement it from {@link LegacyPasswordAuthenticatedUserInterface} instead. - * - * @return string|null The salt - */ - public function getSalt(); - /** * @return string *