/**
  * Raise the failed queue job event.
  *
  * @param  \Illuminate\Contracts\Queue\Job  $job
  * @return void
  */
 protected function raiseFailedJobEvent(Job $job)
 {
     $data = json_decode($job->getRawBody(), true);
     if ($this->container->bound('events')) {
         $this->container['events']->fire('illuminate.queue.failed', array('sync', $job, $data));
     }
 }
Пример #2
0
 /**
  * Raise the failed queue job event.
  *
  * @param  string  $connection
  * @param  \Illuminate\Contracts\Queue\Job  $job
  * @return void
  */
 protected function raiseFailedJobEvent($connection, Job $job)
 {
     if ($this->events) {
         $data = json_decode($job->getRawBody(), true);
         $this->events->fire('illuminate.queue.failed', array($connection, $job, $data));
     }
 }
Пример #3
0
 /**
  * Raise the failed queue job event.
  *
  * @param  string  $connection
  * @param  \Illuminate\Contracts\Queue\Job  $job
  * @return void
  */
 protected function raiseFailedJobEvent($connection, Job $job)
 {
     if ($this->events) {
         $data = json_decode($job->getRawBody(), true);
         $this->events->fire(new Events\JobFailed($connection, $job, $data));
     }
 }
Пример #4
0
 /**
  * Raise the failed queue job event.
  *
  * @param  \Illuminate\Contracts\Queue\Job  $job
  * @return void
  */
 protected function raiseFailedJobEvent(Job $job)
 {
     $data = json_decode($job->getRawBody(), true);
     if ($this->container->bound('events')) {
         $this->container['events']->fire(new Events\JobFailed('sync', $job, $data));
     }
 }
Пример #5
0
 /**
  * Raise the after queue job event.
  *
  * @param  string $connection
  * @param  \Illuminate\Contracts\Queue\Job $job
  * @return void
  */
 protected function raiseAfterJobEvent($connection, Job $job)
 {
     if ($this->events) {
         $data = json_decode($job->getRawBody(), true);
         $this->events->fire('illuminate.queue.after', [$connection, $job, $data]);
     }
 }