@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $this->jobManager = new StaticJobManager(); |
| 20 | 20 | $this->worker = new FibonacciWorker(); |
| 21 | 21 | $this->worker->setJobManager($this->jobManager); |
| 22 | - $this->eventDispatcher = new EventDispatcher(); |
|
| 22 | + $this->eventDispatcher = new EventDispatcher(); |
|
| 23 | 23 | $this->workerManager = new WorkerManager($this->jobManager, $this->eventDispatcher); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | public function save($job) { |
| 66 | 66 | if (!$job->getId()) { |
| 67 | 67 | $job->setId($this->uniqeId); |
| 68 | - $this->jobs[$job->getWorkerName()][$this->uniqeId] = $job; |
|
| 68 | + $this->jobs[$job->getWorkerName()][$this->uniqeId] = $job; |
|
| 69 | 69 | if ($this->enableSorting) { |
| 70 | 70 | uasort($this->jobs[$job->getWorkerName()], array($this, 'compareJobPriority')); |
| 71 | 71 | } |