1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

DDC-4022 method naming

This commit is contained in:
Maximilian Bosch 2015-11-30 17:12:49 +01:00 committed by Ma27
parent 33476d8c34
commit 11f9b00d53

View file

@ -3259,7 +3259,7 @@ class UnitOfWork implements PropertyChangedListener
*/ */
private function afterTransactionComplete() private function afterTransactionComplete()
{ {
$this->doAfterTransaction(function (CachedPersister $persister) { $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
$persister->afterTransactionComplete(); $persister->afterTransactionComplete();
}); });
} }
@ -3269,7 +3269,7 @@ class UnitOfWork implements PropertyChangedListener
*/ */
private function afterTransactionRolledBack() private function afterTransactionRolledBack()
{ {
$this->doAfterTransaction(function (CachedPersister $persister) { $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
$persister->afterTransactionRolledBack(); $persister->afterTransactionRolledBack();
}); });
} }
@ -3279,7 +3279,7 @@ class UnitOfWork implements PropertyChangedListener
* *
* @param callable $callback * @param callable $callback
*/ */
private function doAfterTransaction(callable $callback) private function performCallbackOnCachedPersister(callable $callback)
{ {
if ( ! $this->hasCache) { if ( ! $this->hasCache) {
return; return;