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
|
@@ 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 |
|
} |
|
@@ 185-187 (lines=3) @@
|
| 182 |
|
)->format('c'); |
| 183 |
|
|
| 184 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 185 |
|
if (isset($metaData['user_id']) && isset($metaData['user_nick'])) { |
| 186 |
|
$jsonLD->creator = "{$metaData['user_id']} ({$metaData['user_nick']})"; |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 190 |
|
} |
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 231-235 (lines=5) @@
|
| 228 |
|
$jsonLD->modified = $jsonLD->created; |
| 229 |
|
|
| 230 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 231 |
|
if (isset($metaData['user_email'])) { |
| 232 |
|
$jsonLD->creator = $metaData['user_email']; |
| 233 |
|
} elseif (isset($metaData['user_nick'])) { |
| 234 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 238 |
|
|