Skip to content

Commit

Permalink
Merge pull request #801 from Basster/feature/em-interface
Browse files Browse the repository at this point in the history
Use EntityManagerInterface
  • Loading branch information
kimhemsoe committed Apr 16, 2018
2 parents 134c49e + e05f620 commit b2754fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ManagerConfigurator.php
Expand Up @@ -2,7 +2,7 @@

namespace Doctrine\Bundle\DoctrineBundle;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Filter\SQLFilter;

/**
Expand Down Expand Up @@ -30,7 +30,7 @@ public function __construct(array $enabledFilters, array $filtersParameters)
* Create a connection by name.
*
*/
public function configure(EntityManager $entityManager)
public function configure(EntityManagerInterface $entityManager)
{
$this->enableFilters($entityManager);
}
Expand All @@ -39,7 +39,7 @@ public function configure(EntityManager $entityManager)
* Enables filters for a given entity manager
*
*/
private function enableFilters(EntityManager $entityManager)
private function enableFilters(EntityManagerInterface $entityManager)
{
if (empty($this->enabledFilters)) {
return;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -34,7 +34,7 @@
"doctrine/doctrine-cache-bundle": "~1.2"
},
"require-dev": {
"doctrine/orm": "~2.3",
"doctrine/orm": "~2.4",
"symfony/yaml": "~2.7|~3.0|~4.0",
"symfony/validator": "~2.7|~3.0|~4.0",
"symfony/property-info": "~2.8|~3.0|~4.0",
Expand Down

0 comments on commit b2754fd

Please sign in to comment.