TransactionalInterceptor
in package
implements
MethodInterceptor
FinalYes
Table of Contents
Interfaces
- MethodInterceptor
Methods
- invoke() : mixed
- executeInTransaction() : mixed
- Execute the given callback in a transaction.
Methods
invoke()
public
invoke(MethodInvocation $invocation) : mixed
Parameters
- $invocation : MethodInvocation
executeInTransaction()
Execute the given callback in a transaction.
private
executeInTransaction(Closure $callback, Transactional $attribute) : mixed
Parameters
- $callback : Closure
-
The callback
- $attribute : Transactional
-
The attribute
Return values
mixed —The result of the callback