Skip to content

Commit c3fab4a

Browse files
[8.x] Add ThrottleRequestsWithRedis to $middlewarePriority (#39316)
* Add ThrottleRequestsWithRedis to $middlewarePriority. * Fix test.
1 parent fc52aca commit c3fab4a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Illuminate/Foundation/Http/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class Kernel implements KernelContract
7676
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
7777
\Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests::class,
7878
\Illuminate\Routing\Middleware\ThrottleRequests::class,
79+
\Illuminate\Routing\Middleware\ThrottleRequestsWithRedis::class,
7980
\Illuminate\Session\Middleware\AuthenticateSession::class,
8081
\Illuminate\Routing\Middleware\SubstituteBindings::class,
8182
\Illuminate\Auth\Middleware\Authorize::class,

tests/Foundation/Http/KernelTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function testGetMiddlewarePriority()
3434
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
3535
\Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests::class,
3636
\Illuminate\Routing\Middleware\ThrottleRequests::class,
37+
\Illuminate\Routing\Middleware\ThrottleRequestsWithRedis::class,
3738
\Illuminate\Session\Middleware\AuthenticateSession::class,
3839
\Illuminate\Routing\Middleware\SubstituteBindings::class,
3940
\Illuminate\Auth\Middleware\Authorize::class,

0 commit comments

Comments
 (0)