Skip to content

Commit 95a526c

Browse files
Christopher GooseyChristopher Goosey
authored andcommitted
Use EntityManagerInterface for audit manager
1 parent 502b84c commit 95a526c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/AuditManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace SimpleThings\EntityAudit;
1515

1616
use Doctrine\Common\EventManager;
17-
use Doctrine\ORM\EntityManager;
17+
use Doctrine\ORM\EntityManagerInterface;
1818
use Psr\Clock\ClockInterface;
1919
use SimpleThings\EntityAudit\EventListener\CreateSchemaListener;
2020
use SimpleThings\EntityAudit\EventListener\LogRevisionsListener;
@@ -56,7 +56,7 @@ public function getConfiguration()
5656
*
5757
* @return AuditReader
5858
*/
59-
public function createAuditReader(EntityManager $em)
59+
public function createAuditReader(EntityManagerInterface $em)
6060
{
6161
return new AuditReader($em, $this->config, $this->metadataFactory);
6262
}

0 commit comments

Comments
 (0)