|
@@ 183-193 (lines=11) @@
|
| 180 |
|
/** |
| 181 |
|
* @param WebsiteUpdated $websiteUpdated |
| 182 |
|
*/ |
| 183 |
|
private function applyWebsiteUpdated(WebsiteUpdated $websiteUpdated) |
| 184 |
|
{ |
| 185 |
|
$organizerId = $websiteUpdated->getOrganizerId(); |
| 186 |
|
|
| 187 |
|
$document = $this->repository->get($organizerId); |
| 188 |
|
|
| 189 |
|
$jsonLD = $document->getBody(); |
| 190 |
|
$jsonLD->url = (string) $websiteUpdated->getWebsite(); |
| 191 |
|
|
| 192 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
/** |
| 196 |
|
* @param TitleUpdated $titleUpdated |
|
@@ 198-208 (lines=11) @@
|
| 195 |
|
/** |
| 196 |
|
* @param TitleUpdated $titleUpdated |
| 197 |
|
*/ |
| 198 |
|
private function applyTitleUpdated(TitleUpdated $titleUpdated) |
| 199 |
|
{ |
| 200 |
|
$organizerId = $titleUpdated->getOrganizerId(); |
| 201 |
|
|
| 202 |
|
$document = $this->repository->get($organizerId); |
| 203 |
|
|
| 204 |
|
$jsonLD = $document->getBody(); |
| 205 |
|
$jsonLD->name = $titleUpdated->getTitle()->toNative(); |
| 206 |
|
|
| 207 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
/** |
| 211 |
|
* @param AddressUpdated $addressUpdated |