Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0282a21298 | ||
|
|
adf007b379 |
@@ -1,2 +1,2 @@
|
||||
parameters:
|
||||
app.version: '0.1.6'
|
||||
app.version: '0.1.7'
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace App\Api\Auth\State;
|
||||
use ApiPlatform\Metadata\Operation;
|
||||
use ApiPlatform\State\ProcessorInterface;
|
||||
use App\Entity\User;
|
||||
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
||||
|
||||
/**
|
||||
@@ -15,7 +16,7 @@ use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
||||
class UserPasswordHasherProcessor implements ProcessorInterface
|
||||
{
|
||||
public function __construct(
|
||||
/** @var ProcessorInterface<User, User> */
|
||||
#[Autowire(service: 'api_platform.doctrine.orm.state.persist_processor')]
|
||||
private readonly ProcessorInterface $persistProcessor,
|
||||
private readonly UserPasswordHasherInterface $passwordHasher,
|
||||
) {}
|
||||
|
||||
Reference in New Issue
Block a user