mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Making it compatible with PHP < 5.5
Making the factory receive the classname
This commit is contained in:
parent
7d2ce1bc8b
commit
de22db6826
3 changed files with 11 additions and 10 deletions
|
@ -182,7 +182,7 @@ class Resque_Job implements Resque_JobInterface
|
|||
}
|
||||
|
||||
if ($this->jobFactory !== null) {
|
||||
$this->instance = $this->jobFactory->create();
|
||||
$this->instance = $this->jobFactory->create($this->payload['class']);
|
||||
} else {
|
||||
$this->instance = new $this->payload['class'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue