File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ the number of requests to the API::
128
128
129
129
class ApiController extends AbstractController
130
130
{
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
133
133
public function index(RateLimiter $anonymousApiLimiter)
134
134
{
135
135
// create a limiter based on a unique identifier of the client
@@ -199,8 +199,8 @@ processes by reserving unused tokens.
199
199
200
200
.. note ::
201
201
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
204
204
``reserve() ``.
205
205
206
206
In these cases, you can use ``consume() `` together with ``wait() ``, but
You can’t perform that action at this time.
0 commit comments