From 033df993ff0e449360233fcf9a7ddab4865f4207 Mon Sep 17 00:00:00 2001 From: kdefarge <1819360+kdefarge@users.noreply.github.com> Date: Thu, 19 Jun 2025 07:01:35 +0200 Subject: [PATCH] Fix minor issues in User entity example: unused imports and missing use statement - Removed unused `ApiFilter` and `ApiProperty` imports from the User entity example - Added missing `use App\Entity\User;` in the UserPasswordHasher processor These small corrections improve clarity and prevent potential confusion or errors when copying the example as-is. The goal is to make the official documentation more accurate and beginner-friendly. --- symfony/user.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/symfony/user.md b/symfony/user.md index 51b5f94368b..6d76f0523a2 100644 --- a/symfony/user.md +++ b/symfony/user.md @@ -12,8 +12,6 @@ You can follow the [official Symfony Documentation](https://symfony.com/doc/curr namespace App\Entity; -use ApiPlatform\Metadata\ApiFilter; -use ApiPlatform\Metadata\ApiProperty; use ApiPlatform\Metadata\ApiResource; use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; @@ -231,6 +229,7 @@ namespace App\State; use ApiPlatform\Metadata\Operation; use ApiPlatform\State\ProcessorInterface; +use App\Entity\User; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; /**