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
|
@@ 504-508 (lines=5) @@
|
| 501 |
|
$jsonLD->modified = $jsonLD->created; |
| 502 |
|
|
| 503 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 504 |
|
if (isset($metaData['user_email'])) { |
| 505 |
|
$jsonLD->creator = $metaData['user_email']; |
| 506 |
|
} elseif (isset($metaData['user_nick'])) { |
| 507 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 508 |
|
} |
| 509 |
|
|
| 510 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 511 |
|
|
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 226-230 (lines=5) @@
|
| 223 |
|
$jsonLD->modified = $jsonLD->created; |
| 224 |
|
|
| 225 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 226 |
|
if (isset($metaData['user_email'])) { |
| 227 |
|
$jsonLD->creator = $metaData['user_email']; |
| 228 |
|
} elseif (isset($metaData['user_nick'])) { |
| 229 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 233 |
|
|