Skip to content

Instantly share code, notes, and snippets.

@jaapio
jaapio / RateLimitHandlingRetryStrategy.php
Last active May 28, 2021 17:00
Ratelimit Symfony messenger
<?php
declare(strict_types=1);
namespace App\Symfony\Messenger\Retry;
use App\Provider\Exception\RateLimitException;
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\Exception\HandlerFailedException;
use Symfony\Component\Messenger\Retry\RetryStrategyInterface;