Skip to content

Commit 2928139

Browse files
jbtronicscurry684
authored andcommitted
Use ManagerRegistry instead of RegistryInterface to fix deprecation. (#110)
Since symfony 4.4 RegistryInterface is deprecated,
1 parent b6cbe52 commit 2928139

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Adapter/Doctrine/ORMAdapter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
use Omines\DataTablesBundle\DataTableState;
2626
use Omines\DataTablesBundle\Exception\InvalidConfigurationException;
2727
use Omines\DataTablesBundle\Exception\MissingDependencyException;
28-
use Symfony\Bridge\Doctrine\RegistryInterface;
2928
use Symfony\Component\OptionsResolver\Options;
3029
use Symfony\Component\OptionsResolver\OptionsResolver;
30+
use Doctrine\Common\Persistence\ManagerRegistry;
3131

3232
/**
3333
* ORMAdapter.
@@ -37,7 +37,7 @@
3737
*/
3838
class ORMAdapter extends AbstractAdapter
3939
{
40-
/** @var RegistryInterface */
40+
/** @var ManagerRegistry */
4141
private $registry;
4242

4343
/** @var EntityManager */
@@ -58,9 +58,9 @@ class ORMAdapter extends AbstractAdapter
5858
/**
5959
* DoctrineAdapter constructor.
6060
*
61-
* @param RegistryInterface|null $registry
61+
* @param ManagerRegistry|null $registry
6262
*/
63-
public function __construct(RegistryInterface $registry = null)
63+
public function __construct(ManagerRegistry $registry = null)
6464
{
6565
if (null === $registry) {
6666
throw new MissingDependencyException('Install doctrine/doctrine-bundle to use the ORMAdapter');

0 commit comments

Comments
 (0)