Browse Source

use interface for typehint

Gordon Franke 13 years ago
parent
commit
5bc97c173a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Model/ModelManager.php

+ 2 - 2
Model/ModelManager.php

@@ -22,7 +22,7 @@ use Sonata\AdminBundle\Exception\ModelManagerException;
 use Doctrine\ORM\QueryBuilder;
 
 use Symfony\Component\Form\Exception\PropertyAccessDeniedException;
-use Symfony\Bundle\DoctrineBundle\Registry;
+use Symfony\Bridge\Doctrine\RegistryInterface;
 use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery;
 
 class ModelManager implements ModelManagerInterface
@@ -33,7 +33,7 @@ class ModelManager implements ModelManagerInterface
      *
      * @param \Doctrine\ORM\EntityManager $entityManager
      */
-    public function __construct(\Symfony\Bundle\DoctrineBundle\Registry $registry)
+    public function __construct(\Symfony\Bridge\Doctrine\RegistryInterface $registry)
     {
         $this->registry = $registry;
     }