/**
  * 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));
     }
 }
Exemple #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));
     }
 }
 /**
  * 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));
     }
 }
Exemple #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));
     }
 }
Exemple #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]);
     }
 }