class RequestContextSynchronizer

Methods

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 18
void syncContextKeysToParent(iterable $keys)

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

Parameters

iterable $keys

Return Value

void

at line 35
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 53
protected bool hasKey(array|ArrayAccess $snapshot, string $key)

Determine whether a snapshot has a key.

Parameters

array|ArrayAccess $snapshot
string $key

Return Value

bool