RequestContextSynchronizer
class RequestContextSynchronizer
Methods
void
syncTransactionState(DatabaseTransactionState $source, DatabaseTransactionState $target, array $connections)
Copy the retained database sessions' transaction records between test coroutines.
void
syncContextKeysToParent(iterable $keys)
Sync selected Context keys from the current request coroutine to its parent.
void
syncSnapshotToParent(array|ArrayAccess $snapshot, iterable $keys)
Sync selected Context keys from a snapshot to the current coroutine's parent.
bool
Details
at line 21
void
syncTransactionState(DatabaseTransactionState $source, DatabaseTransactionState $target, array $connections)
Copy the retained database sessions' transaction records between test coroutines.
at line 52
void
syncContextKeysToParent(iterable $keys)
Sync selected Context keys from the current request coroutine to its parent.
at line 69
void
syncSnapshotToParent(array|ArrayAccess $snapshot, iterable $keys)
Sync selected Context keys from a snapshot to the current coroutine's parent.
at line 87
protected bool
hasKey(array|ArrayAccess $snapshot, string $key)
Determine whether a snapshot has a key.