Skip to content

Commit

Permalink
Replaced EntityManager with EntityManagerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
pmishev committed Dec 16, 2020
1 parent 7b3e50d commit bd50df6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Document/Provider/AbstractDoctrineProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Sineflow\ElasticsearchBundle\Document\Provider;

use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query;
use Sineflow\ElasticsearchBundle\Document\DocumentInterface;

Expand All @@ -13,7 +13,7 @@
abstract class AbstractDoctrineProvider extends AbstractProvider
{
/**
* @var EntityManager
* @var EntityManagerInterface
*/
protected $em;

Expand All @@ -38,10 +38,10 @@ abstract class AbstractDoctrineProvider extends AbstractProvider
protected $sourceDataHydration = AbstractQuery::HYDRATE_OBJECT;

/**
* @param string $documentClass The type the provider is for
* @param EntityManager $em The Doctrine entity manager
* @param string $documentClass The type the provider is for
* @param EntityManagerInterface $em The Doctrine entity manager
*/
public function __construct($documentClass, EntityManager $em)
public function __construct($documentClass, EntityManagerInterface $em)
{
parent::__construct($documentClass);
$this->em = $em;
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"symfony/stopwatch": "^3.4 || ^4.0",
"symfony/phpunit-bridge": "^3.4 || ^4.0",
"symfony/browser-kit": "^3.4 || ^4.0",
"doctrine/orm": "^2.6.3",

"monolog/monolog": "^1.0",
"knplabs/knp-paginator-bundle": "^4.0 || ^5.0",
Expand Down

0 comments on commit bd50df6

Please sign in to comment.