Skip to content

Commit f7ae0fa

Browse files
authored
Fix config keys for rate limiter
The `lock` and `storage` keys have been updated to `lock_factory` and `storage_service` respectively.
1 parent 4da30ed commit f7ae0fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rate_limiter.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ Rate Limiter Storage and Locking
260260
--------------------------------
261261

262262
Rate limiters use the default cache and locking mechanisms defined in your
263-
Symfony application. If you prefer to change that, use the ``lock`` and
264-
``storage`` options:
263+
Symfony application. If you prefer to change that, use the ``lock_factory`` and
264+
``storage_service`` options:
265265

266266
.. code-block:: yaml
267267
@@ -274,9 +274,9 @@ Symfony application. If you prefer to change that, use the ``lock`` and
274274
cache_pool: 'app.redis_cache'
275275
# or define a service implementing StorageInterface to use a different
276276
# mechanism to store the limiter information
277-
storage: 'App\RateLimiter\CustomRedisStorage'
277+
storage_service: 'App\RateLimiter\CustomRedisStorage'
278278
# the value is the name of any lock defined in your application
279-
lock: 'app.rate_limiter_lock'
279+
lock_factory: 'app.rate_limiter_lock'
280280
281281
.. _`token bucket algorithm`: https://en.wikipedia.org/wiki/Token_bucket
282282
.. _`PHP date relative formats`: https://www.php.net/datetime.formats.relative

0 commit comments

Comments
 (0)