MultiTextMapPropagator
in package
implements
TextMapPropagatorInterface
FinalYes
Table of Contents
Interfaces
Properties
- $fields : array<int, string>
- $propagators : array<string|int, mixed>
Methods
- __construct() : mixed
- extract() : ContextInterface
- Extracts specific values from the provided carrier into the provided {@see ContextInterface} via an {@see PropagationGetterInterface}.
- fields() : array<int, string>
- Returns list of fields that will be used by this propagator.
- inject() : void
- Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.
- extractFields() : array<int, string>
Properties
$fields read-only
private
array<int, string>
$fields
$propagators read-only
private
array<string|int, mixed>
$propagators
Methods
__construct()
public
__construct(array<int, TextMapPropagatorInterface> $propagators) : mixed
Parameters
- $propagators : array<int, TextMapPropagatorInterface>
Tags
extract()
Extracts specific values from the provided carrier into the provided {@see ContextInterface} via an {@see PropagationGetterInterface}.
public
extract(mixed $carrier[, PropagationGetterInterface|null $getter = null ][, ContextInterface|null $context = null ]) : ContextInterface
Parameters
- $carrier : mixed
- $getter : PropagationGetterInterface|null = null
- $context : ContextInterface|null = null
Return values
ContextInterfacefields()
Returns list of fields that will be used by this propagator.
public
fields() : array<int, string>
Return values
array<int, string>inject()
Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.
public
inject(mixed &$carrier[, PropagationSetterInterface|null $setter = null ][, ContextInterface|null $context = null ]) : void
Parameters
- $carrier : mixed
- $setter : PropagationSetterInterface|null = null
- $context : ContextInterface|null = null
extractFields()
private
extractFields(array<int, TextMapPropagatorInterface> $propagators) : array<int, string>
Parameters
- $propagators : array<int, TextMapPropagatorInterface>