Skip to content

Commit 7689b36

Browse files
authored
fix serialization of rate limited with redis middleware (#35971)
Same as f3d4dcb but for RateLimitedWithRedis
1 parent d627ce2 commit 7689b36

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Illuminate/Queue/Middleware/RateLimitedWithRedis.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,17 @@ protected function getTimeUntilNextRetry($key)
8888
{
8989
return ($this->decaysAt[$key] - $this->currentTime()) + 3;
9090
}
91+
92+
/**
93+
* Prepare the object after unserialization.
94+
*
95+
* @param array $data
96+
* @return void
97+
*/
98+
public function __unserialize(array $data)
99+
{
100+
parent::__unserialize($data);
101+
102+
$this->redis = Container::getInstance()->make(Redis::class);
103+
}
91104
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy