Skip to content

Commit fc18449

Browse files
Adding reset()
Page: https://symfony.com/doc/5.4/rate_limiter.html#rate-limiting-in-action Wasn't mentioned anywhere...
1 parent cd6140a commit fc18449

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)