src/Event/ReadModel/JSONLD/EventLDProjector.php 1 location
|
@@ 454-458 (lines=5) @@
|
| 451 |
|
$jsonLD->modified = $created; |
| 452 |
|
|
| 453 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 454 |
|
if (isset($metaData['user_email'])) { |
| 455 |
|
$jsonLD->creator = $metaData['user_email']; |
| 456 |
|
} elseif (isset($metaData['user_nick'])) { |
| 457 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 458 |
|
} |
| 459 |
|
|
| 460 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 461 |
|
|
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 219-223 (lines=5) @@
|
| 216 |
|
$jsonLD->modified = $jsonLD->created; |
| 217 |
|
|
| 218 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 219 |
|
if (isset($metaData['user_email'])) { |
| 220 |
|
$jsonLD->creator = $metaData['user_email']; |
| 221 |
|
} elseif (isset($metaData['user_nick'])) { |
| 222 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 226 |
|
|
src/Organizer/OrganizerLDProjector.php 2 locations
|
@@ 116-118 (lines=3) @@
|
| 113 |
|
)->format('c'); |
| 114 |
|
|
| 115 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 116 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 117 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 121 |
|
} |
|
@@ 150-152 (lines=3) @@
|
| 147 |
|
)->format('c'); |
| 148 |
|
|
| 149 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 150 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 151 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 155 |
|
} |