Skip to content

Commit 8bcd2b3

Browse files
committed
simplify the PHP config example for compound rate limiters
1 parent 3ae4fec commit 8bcd2b3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

rate_limiter.rst

-6
Original file line numberDiff line numberDiff line change
@@ -622,16 +622,10 @@ You can configure multiple rate limiters to work together:
622622
->policy('fixed_window')
623623
->limit(2)
624624
->interval('1 minute')
625-
;
626-
627-
$framework->rateLimiter()
628625
->limiter('two_per_minute')
629626
->policy('fixed_window')
630627
->limit(5)
631628
->interval('1 hour')
632-
;
633-
634-
$framework->rateLimiter()
635629
->limiter('contact_form')
636630
->policy('compound')
637631
->limiters(['two_per_minute', 'five_per_hour'])

0 commit comments

Comments
 (0)