Skip to content

Commit

Permalink
Fix reference to EntityManager
Browse files Browse the repository at this point in the history
  • Loading branch information
jorrit committed Jan 14, 2021
1 parent 36e3084 commit 74bf606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"symfony/property-info": "^4.4 || ^5.0"
},
"require-dev": {
"doctrine/orm": "2.8",
"gedmo/doctrine-extensions": "^2.3.4 || ^3.0",
"sonata-project/translation-bundle": "^2.7"
},
Expand Down
6 changes: 3 additions & 3 deletions src/Admin/Extension/CloneAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Jorrit\SonataCloneActionBundle\Admin\Extension;

use Doctrine\Persistence\ObjectManager;
use Doctrine\ORM\EntityManagerInterface;
use Gedmo\Translatable\TranslatableListener;
use Jorrit\SonataCloneActionBundle\Controller\CloneController;
use Sonata\AdminBundle\Admin\AbstractAdminExtension;
Expand All @@ -26,7 +26,7 @@ class CloneAdminExtension extends AbstractAdminExtension
private $propertyInfoExtractor;

/**
* @var ObjectManager
* @var EntityManagerInterface
*/
private $entityManager;

Expand All @@ -37,7 +37,7 @@ class CloneAdminExtension extends AbstractAdminExtension

public function __construct(
PropertyListExtractorInterface $propertyInfoExtractor,
ObjectManager $entityManager,
EntityManagerInterface $entityManager,
?TranslatableListener $translatableListener = null
) {
$this->propertyInfoExtractor = $propertyInfoExtractor;
Expand Down

0 comments on commit 74bf606

Please sign in to comment.