diff --git a/src/Magnetico/Repository/TorrentRepository.php b/src/Magnetico/Repository/TorrentRepository.php index ee5dab0..090e218 100644 --- a/src/Magnetico/Repository/TorrentRepository.php +++ b/src/Magnetico/Repository/TorrentRepository.php @@ -4,11 +4,11 @@ namespace App\Magnetico\Repository; use App\Magnetico\Entity\Torrent; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; -use Symfony\Bridge\Doctrine\RegistryInterface; +use Doctrine\Persistence\ManagerRegistry; class TorrentRepository extends ServiceEntityRepository { - public function __construct(RegistryInterface $registry) + public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Torrent::class); } diff --git a/src/Repository/ApiTokenRepository.php b/src/Repository/ApiTokenRepository.php index 523be7c..6696bb4 100644 --- a/src/Repository/ApiTokenRepository.php +++ b/src/Repository/ApiTokenRepository.php @@ -5,11 +5,11 @@ namespace App\Repository; use App\Entity\{ApiToken, User}; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\ORM\Query\Expr\Join; -use Symfony\Bridge\Doctrine\RegistryInterface; +use Doctrine\Persistence\ManagerRegistry; class ApiTokenRepository extends ServiceEntityRepository { - public function __construct(RegistryInterface $registry) + public function __construct(ManagerRegistry $registry) { parent::__construct($registry, ApiToken::class); } diff --git a/src/Repository/InviteRepository.php b/src/Repository/InviteRepository.php index 268b000..8661b45 100644 --- a/src/Repository/InviteRepository.php +++ b/src/Repository/InviteRepository.php @@ -2,13 +2,13 @@ namespace App\Repository; +use Doctrine\Persistence\ManagerRegistry; use App\Entity\{Invite, User}; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; -use Symfony\Bridge\Doctrine\RegistryInterface; class InviteRepository extends ServiceEntityRepository { - public function __construct(RegistryInterface $registry) + public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Invite::class); } diff --git a/src/Repository/UserRepository.php b/src/Repository/UserRepository.php index c9b4c14..7e03df3 100644 --- a/src/Repository/UserRepository.php +++ b/src/Repository/UserRepository.php @@ -4,11 +4,11 @@ namespace App\Repository; use App\Entity\User; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; -use Symfony\Bridge\Doctrine\RegistryInterface; +use Doctrine\Persistence\ManagerRegistry; class UserRepository extends ServiceEntityRepository { - public function __construct(RegistryInterface $registry) + public function __construct(ManagerRegistry $registry) { parent::__construct($registry, User::class); }