Skip to content

Commit 2c8e1b9

Browse files
committed
Tweaks
1 parent c7de76c commit 2c8e1b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rate_limiter.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ the number of requests to the API::
128128

129129
class ApiController extends AbstractController
130130
{
131-
// the variable name must be: "rate limiter name" + "limiter" suffix
132-
// if you're using autowiring for your services
131+
// if you're using service autowiring, the variable name must be:
132+
// "rate limiter name" (in camelCase) + "limiter" suffix
133133
public function index(RateLimiter $anonymousApiLimiter)
134134
{
135135
// create a limiter based on a unique identifier of the client
@@ -199,8 +199,8 @@ processes by reserving unused tokens.
199199

200200
.. note::
201201

202-
Not all strategies allow reservering tokens in the future. These
203-
strategies may throw an ``ReserveNotSupportedException`` when calling
202+
Not all strategies allow reserving tokens in the future. These
203+
strategies may throw a ``ReserveNotSupportedException`` when calling
204204
``reserve()``.
205205

206206
In these cases, you can use ``consume()`` together with ``wait()``, but

0 commit comments

Comments
 (0)