Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[RateLimiter] Adding config reference for policy and lock_factory#14746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -211,6 +211,13 @@ Configuration | ||
| * :ref:`enabled <reference-property-info-enabled>` | ||
| * `rate_limiter`_: | ||
| * :ref:`name <reference-rate-limiter-name>` | ||
| * `lock_factory`_ | ||
| * `policy`_ | ||
| * `request`_: | ||
| * `formats`_ | ||
| @@ -1220,6 +1227,35 @@ dsn | ||
| The DSN where to store the profiling information. | ||
| rate_limiter | ||
| ~~~~~~~~~~~~ | ||
| .. _reference-rate-limiter-name: | ||
| name | ||
| .... | ||
| **type**: ``prototype`` | ||
| Name of the rate limiter you want to create. | ||
| lock_factory | ||
| """""""""""" | ||
| **type**: ``string`` **default:** ``lock.factory`` | ||
| The service that is used to create a lock. The service has to implement the | ||
| :class:`Symfony\\Component\\Lock\\LockFactoryInterface`. | ||
MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. In 5.2 it should be But (hopefully) this is correct in 5.3:symfony/symfony#39634 Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. We did this change while merging. Cheers! | ||
| policy | ||
| """""" | ||
| **type**: ``string`` **required** | ||
| The name of the rate limiting algorithm to use. Example names are ``fixed_window``, | ||
| ``sliding_window`` and ``no_limit``. See :ref:`Rate Limiter Policies <rate-limiter-policies>`) | ||
| for more information. | ||
| request | ||
| ~~~~~~~ | ||