Skip to content

Commit ff325ee

Browse files
authored
Fix minor issues in User entity example: unused imports and missing use statement (#2173)
- 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.
1 parent eaab755 commit ff325ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

symfony/user.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ You can follow the [official Symfony Documentation](https://symfony.com/doc/curr
1212

1313
namespace App\Entity;
1414

15-
use ApiPlatform\Metadata\ApiFilter;
16-
use ApiPlatform\Metadata\ApiProperty;
1715
use ApiPlatform\Metadata\ApiResource;
1816
use ApiPlatform\Metadata\Delete;
1917
use ApiPlatform\Metadata\Get;
@@ -231,6 +229,7 @@ namespace App\State;
231229

232230
use ApiPlatform\Metadata\Operation;
233231
use ApiPlatform\State\ProcessorInterface;
232+
use App\Entity\User;
234233
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
235234

236235
/**

0 commit comments

Comments
 (0)