Skip to content

Commit

Permalink
Use EntityManagerInterface for audit manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Goosey authored and Christopher Goosey committed Apr 11, 2024
1 parent 502b84c commit 95a526c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AuditManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace SimpleThings\EntityAudit;

use Doctrine\Common\EventManager;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Clock\ClockInterface;
use SimpleThings\EntityAudit\EventListener\CreateSchemaListener;
use SimpleThings\EntityAudit\EventListener\LogRevisionsListener;
Expand Down Expand Up @@ -56,7 +56,7 @@ public function getConfiguration()
*
* @return AuditReader
*/
public function createAuditReader(EntityManager $em)
public function createAuditReader(EntityManagerInterface $em)
{
return new AuditReader($em, $this->config, $this->metadataFactory);
}
Expand Down

0 comments on commit 95a526c

Please sign in to comment.