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/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 |
|
|