Skip to content

Commit 4805818

Browse files
authored
pass an instance of the job to queued closures (#34350)
1 parent 02d1424 commit 4805818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Queue/CallQueuedClosure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function create(Closure $job)
6666
*/
6767
public function handle(Container $container)
6868
{
69-
$container->call($this->closure->getClosure());
69+
$container->call($this->closure->getClosure(), ['job' => $this]);
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)