updrade with rector
This commit is contained in:
@@ -5,10 +5,10 @@ namespace App\Repository;
|
||||
use App\Entity\User;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use function get_class;
|
||||
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
|
||||
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
||||
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
|
||||
use function get_class;
|
||||
|
||||
/**
|
||||
* @method User|null find($id, $lockMode = null, $lockVersion = null)
|
||||
@@ -23,8 +23,6 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
|
||||
parent::__construct(registry: $registry, entityClass: User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public function add(User $entity, bool $flush = true): void
|
||||
{
|
||||
$this->_em->persist(entity: $entity);
|
||||
@@ -33,8 +31,6 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public function remove(User $entity, bool $flush = true): void
|
||||
{
|
||||
$this->_em->remove(entity: $entity);
|
||||
|
||||
Reference in New Issue
Block a user