|
@@ -41,7 +41,7 @@ discard block |
|
|
block discarded – undo |
|
41
|
41
|
|
|
42
|
42
|
$driver = $entityManager->getConnection()->getDriver(); |
|
43
|
43
|
if ($driver instanceof DHDriver) { |
|
44
|
|
- $driver->addDHFlusher(function () use ($transaction): void { |
|
|
44
|
+ $driver->addDHFlusher(function() use ($transaction): void { |
|
45
|
45
|
$this->transactionManager->process($transaction); |
|
46
|
46
|
$transaction->reset(); |
|
47
|
47
|
}); |
|
@@ -51,7 +51,7 @@ discard block |
|
|
block discarded – undo |
|
51
|
51
|
trigger_deprecation('damienharper/auditor', '2.2', 'SQLLogger is deprecated. Use DHMiddleware instead'); |
|
52
|
52
|
// extend the SQL logger |
|
53
|
53
|
$loggerBackup = $entityManager->getConnection()->getConfiguration()->getSQLLogger(); |
|
54
|
|
- $auditLogger = new Logger(function () use ($loggerBackup, $entityManager, $transaction): void { |
|
|
54
|
+ $auditLogger = new Logger(function() use ($loggerBackup, $entityManager, $transaction): void { |
|
55
|
55
|
// flushes pending data |
|
56
|
56
|
$entityManager->getConnection()->getConfiguration()->setSQLLogger($loggerBackup); |
|
57
|
57
|
$this->transactionManager->process($transaction); |
Please login to merge, or discard this patch.