|
@@ 258-268 (lines=11) @@
|
| 255 |
|
* @param WebsiteUpdated $websiteUpdated |
| 256 |
|
* @return JsonDocument |
| 257 |
|
*/ |
| 258 |
|
private function applyWebsiteUpdated(WebsiteUpdated $websiteUpdated) |
| 259 |
|
{ |
| 260 |
|
$organizerId = $websiteUpdated->getOrganizerId(); |
| 261 |
|
|
| 262 |
|
$document = $this->repository->get($organizerId); |
| 263 |
|
|
| 264 |
|
$jsonLD = $document->getBody(); |
| 265 |
|
$jsonLD->url = (string) $websiteUpdated->getWebsite(); |
| 266 |
|
|
| 267 |
|
return $document->withBody($jsonLD); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
/** |
| 271 |
|
* @param TitleUpdated $titleUpdated |
|
@@ 518-528 (lines=11) @@
|
| 515 |
|
return $document->withBody($jsonLD); |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
public function applyGeoCoordinatesUpdated(GeoCoordinatesUpdated $geoCoordinatesUpdated) |
| 519 |
|
{ |
| 520 |
|
|
| 521 |
|
$document = $this->repository->get($geoCoordinatesUpdated->getOrganizerId()); |
| 522 |
|
|
| 523 |
|
$jsonLD = $document->getBody(); |
| 524 |
|
|
| 525 |
|
$jsonLD->geo = $geoCoordinatesUpdated->toJsonLd(); |
| 526 |
|
|
| 527 |
|
return $document->withBody($jsonLD); |
| 528 |
|
} |
| 529 |
|
|
| 530 |
|
/** |
| 531 |
|
* @param ActorEvent $actor |