Skip to content

Commit

Permalink
fix deprecated registry in repository
Browse files Browse the repository at this point in the history
  • Loading branch information
davidroberto committed Apr 24, 2020
1 parent afcd5dc commit 879fb5d
Show file tree
Hide file tree
Showing 13 changed files with 144 additions and 8 deletions.
74 changes: 74 additions & 0 deletions .idea/$CACHE_FILE$

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/$PRODUCT_WORKSPACE_FILE$

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/blog-bundle.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Repository/PostCategoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Aropixel\BlogBundle\Entity\PostCategory;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method PostCategory|null find($id, $lockMode = null, $lockVersion = null)
Expand All @@ -14,7 +14,7 @@
*/
class PostCategoryRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, PostCategory::class);
}
Expand Down
4 changes: 2 additions & 2 deletions Repository/PostImageCropRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Aropixel\BlogBundle\Entity\PostImageCrop;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method PostImageCrop|null find($id, $lockMode = null, $lockVersion = null)
Expand All @@ -14,7 +14,7 @@
*/
class PostImageCropRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, PostImageCrop::class);
}
Expand Down
4 changes: 2 additions & 2 deletions Repository/PostImageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Aropixel\BlogBundle\Entity\PostImage;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method PostImage|null find($id, $lockMode = null, $lockVersion = null)
Expand All @@ -14,7 +14,7 @@
*/
class PostImageRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, PostImage::class);
}
Expand Down
4 changes: 2 additions & 2 deletions Repository/PostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Aropixel\BlogBundle\Entity\Post;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Bridge\Doctrine\RegistryInterface;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method Post|null find($id, $lockMode = null, $lockVersion = null)
Expand All @@ -16,7 +16,7 @@
*/
class PostRepository extends PublishableRepository
{
public function __construct(RegistryInterface $registry, $className)
public function __construct(ManagerRegistry $registry, $className)
{
parent::__construct($registry, $className);
}
Expand Down

0 comments on commit 879fb5d

Please sign in to comment.