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
hasKey(array|ArrayAccess $snapshot, string $key)

Determine whether a snapshot has a key.

Details

at line 21
void syncTransactionState(DatabaseTransactionState $source, DatabaseTransactionState $target, array $connections)

Copy the retained database sessions' transaction records between test coroutines.

Parameters

DatabaseTransactionState $source
DatabaseTransactionState $target
array $connections

Return Value

void

at line 52
void syncContextKeysToParent(iterable $keys)

Sync selected Context keys from the current request coroutine to its parent.

Parameters

iterable $keys

Return Value

void

at line 69
void syncSnapshotToParent(array|ArrayAccess $snapshot, iterable $keys)

Sync selected Context keys from a snapshot to the current coroutine's parent.

Parameters

array|ArrayAccess $snapshot
iterable $keys

Return Value

void

at line 87
protected bool hasKey(array|ArrayAccess $snapshot, string $key)

Determine whether a snapshot has a key.

Parameters

array|ArrayAccess $snapshot
string $key

Return Value

bool