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