refactor(api) : passe UserPasswordHasherProcessor et MeProvider en final

T-012 — aligne ces deux classes sur la convention de la PR (tous les
autres providers/processors sont final). Empeche une sous-classe de
contourner la logique de hachage ou l'auth Me par heritage accidentel.
This commit is contained in:
Matthieu
2026-04-23 11:44:02 +02:00
parent 585f3c5b79
commit 2a835855b9
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
/**
* @implements ProcessorInterface<User, User>
*/
class UserPasswordHasherProcessor implements ProcessorInterface
final class UserPasswordHasherProcessor implements ProcessorInterface
{
public function __construct(
#[Autowire(service: 'api_platform.doctrine.orm.state.persist_processor')]

View File

@@ -11,7 +11,7 @@ use Symfony\Bundle\SecurityBundle\Security;
/**
* @implements ProviderInterface<object>
*/
class MeProvider implements ProviderInterface
final class MeProvider implements ProviderInterface
{
public function __construct(
private readonly Security $security,