Entity repositories DI fixed.

This commit is contained in:
Alexey Skobkin 2020-01-18 01:41:35 +03:00
parent 711a6f3414
commit b84900ed26
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7
4 changed files with 8 additions and 8 deletions

View file

@ -4,11 +4,11 @@ namespace App\Magnetico\Repository;
use App\Magnetico\Entity\Torrent; use App\Magnetico\Entity\Torrent;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface; use Doctrine\Persistence\ManagerRegistry;
class TorrentRepository extends ServiceEntityRepository class TorrentRepository extends ServiceEntityRepository
{ {
public function __construct(RegistryInterface $registry) public function __construct(ManagerRegistry $registry)
{ {
parent::__construct($registry, Torrent::class); parent::__construct($registry, Torrent::class);
} }

View file

@ -5,11 +5,11 @@ namespace App\Repository;
use App\Entity\{ApiToken, User}; use App\Entity\{ApiToken, User};
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\Query\Expr\Join; use Doctrine\ORM\Query\Expr\Join;
use Symfony\Bridge\Doctrine\RegistryInterface; use Doctrine\Persistence\ManagerRegistry;
class ApiTokenRepository extends ServiceEntityRepository class ApiTokenRepository extends ServiceEntityRepository
{ {
public function __construct(RegistryInterface $registry) public function __construct(ManagerRegistry $registry)
{ {
parent::__construct($registry, ApiToken::class); parent::__construct($registry, ApiToken::class);
} }

View file

@ -2,13 +2,13 @@
namespace App\Repository; namespace App\Repository;
use Doctrine\Persistence\ManagerRegistry;
use App\Entity\{Invite, User}; use App\Entity\{Invite, User};
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
class InviteRepository extends ServiceEntityRepository class InviteRepository extends ServiceEntityRepository
{ {
public function __construct(RegistryInterface $registry) public function __construct(ManagerRegistry $registry)
{ {
parent::__construct($registry, Invite::class); parent::__construct($registry, Invite::class);
} }

View file

@ -4,11 +4,11 @@ namespace App\Repository;
use App\Entity\User; use App\Entity\User;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface; use Doctrine\Persistence\ManagerRegistry;
class UserRepository extends ServiceEntityRepository class UserRepository extends ServiceEntityRepository
{ {
public function __construct(RegistryInterface $registry) public function __construct(ManagerRegistry $registry)
{ {
parent::__construct($registry, User::class); parent::__construct($registry, User::class);
} }