From b84900ed2602436dc292dd95ddbb0da15c519cf3 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 18 Jan 2020 01:41:35 +0300 Subject: [PATCH] Entity repositories DI fixed. --- src/Magnetico/Repository/TorrentRepository.php | 4 ++-- src/Repository/ApiTokenRepository.php | 4 ++-- src/Repository/InviteRepository.php | 4 ++-- src/Repository/UserRepository.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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); }