mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-12 21:14:03 +00:00
fix: pass parameters to method
This commit is contained in:
parent
36474ffd21
commit
85e7d8a6b9
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class JobPipeline implements ShouldQueue
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = app()->call($job);
|
$result = app()->call($job, $this->passable);
|
||||||
} catch (Throwable $exception) {
|
} catch (Throwable $exception) {
|
||||||
if (method_exists(get_class($job[0]), 'failed')) {
|
if (method_exists(get_class($job[0]), 'failed')) {
|
||||||
call_user_func_array([$job[0], 'failed'], [$exception]);
|
call_user_func_array([$job[0], 'failed'], [$exception]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue