Skip to content

Commit fc17ad3

Browse files
committed
minor symfony#14692 [RateLimiter] Fix config keys for rate limiter (pierredup)
This PR was merged into the 5.2 branch. Discussion ---------- [RateLimiter] Fix config keys for rate limiter The `lock` and `storage` keys have been updated to `lock_factory` and `storage_service` respectively. Commits ------- f7ae0fa Fix config keys for rate limiter
2 parents 46f7d5f + f7ae0fa commit fc17ad3

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy