use Symfony\Component\Scheduler\ScheduleProviderInterface;
#[AsSchedule('dummy')]
class DummySchedule implements ScheduleProviderInterface
{ public static array
$recurringMessages;
public function getSchedule(): Schedule
{ return (new Schedule()) ->
add(...self::
$recurringMessages) ->
stateful(new ArrayAdapter()) ->
lock(new Lock(new Key('dummy'
),
new InMemoryStore())) ;
}}