src/Event/ReadModel/JSONLD/EventLDProjector.php 1 location
|
@@ 460-464 (lines=5) @@
|
| 457 |
|
$jsonLD->modified = $created; |
| 458 |
|
|
| 459 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 460 |
|
if (isset($metaData['user_email'])) { |
| 461 |
|
$jsonLD->creator = $metaData['user_email']; |
| 462 |
|
} elseif (isset($metaData['user_nick'])) { |
| 463 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 467 |
|
|
src/Organizer/OrganizerLDProjector.php 2 locations
|
@@ 138-140 (lines=3) @@
|
| 135 |
|
)->format('c'); |
| 136 |
|
|
| 137 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 138 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 139 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 143 |
|
} |
|
@@ 173-175 (lines=3) @@
|
| 170 |
|
)->format('c'); |
| 171 |
|
|
| 172 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 173 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 174 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 178 |
|
} |
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 224-228 (lines=5) @@
|
| 221 |
|
$jsonLD->modified = $jsonLD->created; |
| 222 |
|
|
| 223 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 224 |
|
if (isset($metaData['user_email'])) { |
| 225 |
|
$jsonLD->creator = $metaData['user_email']; |
| 226 |
|
} elseif (isset($metaData['user_nick'])) { |
| 227 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 231 |
|
|