File tree 3 files changed +4
-3
lines changed
Tests/DependencyInjection/Fixtures/Bundles/RepositoryServiceBundle/Repository
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 14
14
*
15
15
* class YourEntityRepository extends ServiceEntityRepository
16
16
* {
17
- * public function __construct(RegistryInterface $registry)
17
+ * public function __construct(Registry $registry)
18
18
* {
19
19
* parent::__construct($registry, YourEntity::class);
20
20
* }
Original file line number Diff line number Diff line change 66
66
</service >
67
67
<service id =" Doctrine\Common\Persistence\ManagerRegistry" alias =" doctrine" public =" false" />
68
68
<service id =" Symfony\Bridge\Doctrine\RegistryInterface" alias =" doctrine" public =" false" />
69
+ <service id =" Doctrine\Bundle\DoctrineBundle\Registry" alias =" doctrine" public =" false" />
69
70
70
71
<service id =" doctrine.twig.doctrine_extension" class =" Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension" public =" false" >
71
72
<tag name =" twig.extension" />
Original file line number Diff line number Diff line change 2
2
3
3
namespace Fixtures \Bundles \RepositoryServiceBundle \Repository ;
4
4
5
+ use Doctrine \Bundle \DoctrineBundle \Registry ;
5
6
use Doctrine \Bundle \DoctrineBundle \Repository \ServiceEntityRepository ;
6
7
use Fixtures \Bundles \RepositoryServiceBundle \Entity \TestCustomServiceRepoEntity ;
7
- use Symfony \Bridge \Doctrine \RegistryInterface ;
8
8
9
9
class TestCustomServiceRepoRepository extends ServiceEntityRepository
10
10
{
11
- public function __construct (RegistryInterface $ registry )
11
+ public function __construct (Registry $ registry )
12
12
{
13
13
parent ::__construct ($ registry , TestCustomServiceRepoEntity::class);
14
14
}
You can’t perform that action at this time.
0 commit comments