示例#1
0
 /**
  * @param TaskMetadataWasUpdated $event
  */
 protected function whenTaskMetadataWasUpdated(TaskMetadataWasUpdated $event)
 {
     $this->processingMetadata = $event->taskMetadata();
 }
 public function onTaskMetadataWasUpdated(TaskMetadataWasUpdated $event)
 {
     $this->connection->update(Tables::TASK, ['metadata' => json_encode($event->taskMetadata()->toArray())], ['id' => $event->taskId()->toString()]);
 }