Skip to content
Discussion options

You must be logged in to vote

I’ve checked the implementation of EndpointHeadersInterceptor and noticed the following logic:

if ($delayed) {
    $metadata[MessageHeaders::DELIVERY_DELAY] = $delayed->getHeaderValue();

    if ($delayed->getExpression()) {
        $metadata[MessageHeaders::DELIVERY_DELAY] = $this->expressionEvaluationService->evaluate($delayed->getExpression(), [
            'payload' => $message->getPayload(),
            'headers' => $message->getHeaders()->headers(),
        ]);
    }

    $type = Type::createFromVariable($metadata[MessageHeaders::DELIVERY_DELAY]);
    if (! $type->isCompatibleWith(UnionType::createWith([
        Type::int(),
        Type::object(TimeSpan::class),
        Type::object(…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lifinsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant