There was an error while loading. Please reload this page.
1 parent d627ce2 commit 7689b36Copy full SHA for 7689b36
src/Illuminate/Queue/Middleware/RateLimitedWithRedis.php
@@ -88,4 +88,17 @@ protected function getTimeUntilNextRetry($key)
88
{
89
return ($this->decaysAt[$key] - $this->currentTime()) + 3;
90
}
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
+ }
104
0 commit comments