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
|
@@ 210-214 (lines=5) @@
|
| 207 |
|
$jsonLD->modified = $jsonLD->created; |
| 208 |
|
|
| 209 |
|
$metaData = $domainMessage->getMetadata()->serialize(); |
| 210 |
|
if (isset($metaData['user_email'])) { |
| 211 |
|
$jsonLD->creator = $metaData['user_email']; |
| 212 |
|
} elseif (isset($metaData['user_nick'])) { |
| 213 |
|
$jsonLD->creator = $metaData['user_nick']; |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
$jsonLD->workflowStatus = WorkflowStatus::DRAFT()->getName(); |
| 217 |
|
|
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 |
|
|