Skip to content

Commit 21eff3c

Browse files
committed
minor #17869 [RateLimiter] Adding reset() (ThomasLandauer)
This PR was merged into the 5.4 branch. Discussion ---------- [RateLimiter] Adding `reset()` Page: https://symfony.com/doc/5.4/rate_limiter.html#rate-limiting-in-action Wasn't mentioned anywhere... Commits ------- fc18449 Adding `reset()`
2 parents cd6140a + fc18449 commit 21eff3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rate_limiter.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,11 @@ the number of requests to the API::
249249
// RateLimitExceededException if the limit has been reached
250250
// $limiter->consume(1)->ensureAccepted();
251251

252+
// to reset the counter
253+
// $limiter->reset();
254+
252255
// ...
253256
}
254-
255-
// ...
256257
}
257258

258259
.. note::

0 commit comments

Comments
 (0)