Skip to content

Commit 8811181

Browse files
authored
Merge pull request #1172 from dunglas/fix/manager-registry-deprec
fix: Doctrine's ManagerRegistry deprecation
2 parents 07a69f7 + 0532b22 commit 8811181

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/data-providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ use ApiPlatform\Core\DataProvider\ItemDataProviderInterface;
201201
use ApiPlatform\Core\DataProvider\RestrictedDataProviderInterface;
202202
use ApiPlatform\Core\Exception\ResourceClassNotSupportedException;
203203
use App\Entity\BlogPost;
204-
use Doctrine\Common\Persistence\ManagerRegistry;
204+
use Doctrine\Persistence\ManagerRegistry;
205205
206206
final class BlogPostItemDataProvider implements ItemDataProviderInterface, RestrictedDataProviderInterface
207207
{

core/pagination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ namespace App\Repository;
434434
435435
use App\Entity\Book;
436436
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
437-
use Doctrine\Common\Persistence\ManagerRegistry;
437+
use Doctrine\Persistence\ManagerRegistry;
438438
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
439439
use Doctrine\ORM\Tools\Pagination\Paginator as DoctrinePaginator;
440440
use ApiPlatform\Core\Bridge\Doctrine\Orm\Paginator;

0 commit comments

Comments
 (0)