You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->info('The service ID of the lock factory used by this limiter')
1741
+
->defaultValue('lock.factory')
1742
+
->end()
1743
+
->scalarNode('cache_pool')
1744
+
->info('The cache pool to use for storing the current limiter state')
1745
+
->defaultValue('cache.app')
1746
+
->end()
1747
+
->scalarNode('storage_service')
1748
+
->info('The service ID of a custom storage implementation, this precedes any configured "cache_pool"')
1749
+
->defaultNull()
1750
+
->end()
1751
+
->enumNode('strategy')
1752
+
->info('The rate limiting algorithm to use for this rate')
1753
+
->isRequired()
1754
+
->values(['fixed_window', 'token_bucket'])
1755
+
->end()
1756
+
->integerNode('limit')
1757
+
->info('The maximum allowed hits in a fixed interval or burst')
1758
+
->isRequired()
1759
+
->end()
1760
+
->scalarNode('interval')
1761
+
->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).')
1762
+
->end()
1744
1763
->arrayNode('rate')
1764
+
->info('Configures the fill rate if "strategy" is set to "token_bucket"')
1745
1765
->children()
1746
-
->scalarNode('interval')->isRequired()->end()
1747
-
->integerNode('amount')->defaultValue(1)->end()
1766
+
->scalarNode('interval')
1767
+
->info('Configures the rate interval. The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent).')
1768
+
->end()
1769
+
->integerNode('amount')->info('Amount of tokens to add each interval')->defaultValue(1)->end()
0 commit comments