diff --git a/composer.json b/composer.json index 200d285..890621c 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,7 @@ "ext-pdo": "*", "ext-pdo_sqlite": "*", "phpunit/phpunit": "^9", + "symfony/var-exporter": "^6.4 | ^7.0", "symfony/phpunit-bridge": "^6.4 | ^7.0" }, "autoload": { diff --git a/src/DependencyInjection/DataDogAuditExtension.php b/src/DependencyInjection/DataDogAuditExtension.php index af1daf8..f3ea4d3 100644 --- a/src/DependencyInjection/DataDogAuditExtension.php +++ b/src/DependencyInjection/DataDogAuditExtension.php @@ -5,7 +5,7 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; +use Symfony\Component\DependencyInjection\Extension\Extension; class DataDogAuditExtension extends Extension { diff --git a/src/EventListener/AuditListener.php b/src/EventListener/AuditListener.php index 1ec9faa..b5fd4d5 100644 --- a/src/EventListener/AuditListener.php +++ b/src/EventListener/AuditListener.php @@ -222,11 +222,9 @@ public function flush(): void $auditPersister = $uow->getEntityPersister(AuditLog::class); $rmAuditInsertSQL = new \ReflectionMethod($auditPersister, 'getInsertSQL'); - $rmAuditInsertSQL->setAccessible(true); $this->auditInsertStmt = $this->entityManager->getConnection()->prepare($rmAuditInsertSQL->invoke($auditPersister)); $assocPersister = $uow->getEntityPersister(Association::class); $rmAssocInsertSQL = new \ReflectionMethod($assocPersister, 'getInsertSQL'); - $rmAssocInsertSQL->setAccessible(true); $this->assocInsertStmt = $this->entityManager->getConnection()->prepare($rmAssocInsertSQL->invoke($assocPersister)); foreach ($this->updated as $entry) {