src/Organizer/OrganizerLDProjector.php 2 locations
|
@@ 112-114 (lines=3) @@
|
| 109 |
|
)->format('c'); |
| 110 |
|
|
| 111 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 112 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 113 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 117 |
|
} |
|
@@ 145-147 (lines=3) @@
|
| 142 |
|
)->format('c'); |
| 143 |
|
|
| 144 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 145 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 146 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 150 |
|
} |
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 234-238 (lines=5) @@
|
| 231 |
|
$jsonLD->modified = $jsonLD->created; |
| 232 |
|
|
| 233 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 234 |
|
if (isset($metaData['user_email'])) { |
| 235 |
|
$jsonLD->creator = $metaData['user_email']; |
| 236 |
|
} elseif (isset($metaData['user_nick'])) { |
| 237 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 241 |
|
|
src/Event/ReadModel/JSONLD/EventLDProjector.php 1 location
|
@@ 463-467 (lines=5) @@
|
| 460 |
|
$jsonLD->modified = $jsonLD->created; |
| 461 |
|
|
| 462 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 463 |
|
if (isset($metaData['user_email'])) { |
| 464 |
|
$jsonLD->creator = $metaData['user_email']; |
| 465 |
|
} elseif (isset($metaData['user_nick'])) { |
| 466 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 467 |
|
} |
| 468 |
|
|
| 469 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 470 |
|
|