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/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 |
|
|
src/Organizer/OrganizerLDProjector.php 2 locations
|
@@ 153-155 (lines=3) @@
|
| 150 |
|
)->format('c'); |
| 151 |
|
|
| 152 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 153 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 154 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 158 |
|
} |
|
@@ 189-191 (lines=3) @@
|
| 186 |
|
)->format('c'); |
| 187 |
|
|
| 188 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 189 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 190 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 194 |
|
} |