Skip to content

Commit ba217ec

Browse files
committed
feature #38565 [RateLimiter] Adding SlidingWindow algorithm (Nyholm)
This PR was squashed before being merged into the 5.x branch. Discussion ---------- [RateLimiter] Adding SlidingWindow algorithm | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | no | New feature? | yes | Deprecations? | | Tickets | | License | MIT | Doc PR | Should be added This is a draft PR to make sure we like the idea. I'll keep working on adding tests. Commits ------- c6d3b70315 [RateLimiter] Adding SlidingWindow algorithm
2 parents 003f608 + 72438d6 commit ba217ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,14 +1817,14 @@ private function addRateLimiterSection(ArrayNodeDefinition $rootNode)
18171817
->enumNode('strategy')
18181818
->info('The rate limiting algorithm to use for this rate')
18191819
->isRequired()
1820-
->values(['fixed_window', 'token_bucket'])
1820+
->values(['fixed_window', 'token_bucket', 'sliding_window'])
18211821
->end()
18221822
->integerNode('limit')
18231823
->info('The maximum allowed hits in a fixed interval or burst')
18241824
->isRequired()
18251825
->end()
18261826
->scalarNode('interval')
1827-
->info('Configures the fixed interval if "strategy" is set to "fixed_window". The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent).')
1827+
->info('Configures the fixed interval if "strategy" is set to "fixed_window" or "sliding_window". The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent).')
18281828
->end()
18291829
->arrayNode('rate')
18301830
->info('Configures the fill rate if "strategy" is set to "token_bucket"')

0 commit comments

Comments
 (0)