DDC-4022 method naming
This commit is contained in:
parent
33476d8c34
commit
11f9b00d53
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue