Skip to content

Commit 72438d6

Browse files
Nyholmfabpot
authored andcommitted
[RateLimiter] Adding SlidingWindow algorithm
1 parent b4c853a commit 72438d6

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)