src/Organizer/OrganizerLDProjector.php 1 location
|
@@ 162-173 (lines=12) @@
|
| 159 |
|
* @param string $id |
| 160 |
|
* @return JsonDocument |
| 161 |
|
*/ |
| 162 |
|
protected function newDocument($id) |
| 163 |
|
{ |
| 164 |
|
$document = new JsonDocument($id); |
| 165 |
|
|
| 166 |
|
$organizerLd = $document->getBody(); |
| 167 |
|
$organizerLd->{'@id'} = $this->iriGenerator->iri($id); |
| 168 |
|
|
| 169 |
|
// @todo provide Event-LD context here relative to the base URI |
| 170 |
|
$organizerLd->{'@context'} = '/api/1.0/organizer.jsonld'; |
| 171 |
|
|
| 172 |
|
return $document->withBody($organizerLd); |
| 173 |
|
} |
| 174 |
|
} |
| 175 |
|
|
src/Event/EventLDProjector.php 1 location
|
@@ 780-791 (lines=12) @@
|
| 777 |
|
* @param string $id |
| 778 |
|
* @return JsonDocument |
| 779 |
|
*/ |
| 780 |
|
protected function newDocument($id) |
| 781 |
|
{ |
| 782 |
|
$document = new JsonDocument($id); |
| 783 |
|
|
| 784 |
|
$eventLd = $document->getBody(); |
| 785 |
|
$eventLd->{'@id'} = $this->iriGenerator->iri($id); |
| 786 |
|
|
| 787 |
|
// @todo provide Event-LD context here relative to the base URI |
| 788 |
|
$eventLd->{'@context'} = '/api/1.0/event.jsonld'; |
| 789 |
|
|
| 790 |
|
return $document->withBody($eventLd); |
| 791 |
|
} |
| 792 |
|
|
| 793 |
|
/** |
| 794 |
|
* @param EventEvent $event |
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 122-133 (lines=12) @@
|
| 119 |
|
* @param string $id |
| 120 |
|
* @return JsonDocument |
| 121 |
|
*/ |
| 122 |
|
protected function newDocument($id) |
| 123 |
|
{ |
| 124 |
|
$document = new JsonDocument($id); |
| 125 |
|
|
| 126 |
|
$placeLd = $document->getBody(); |
| 127 |
|
$placeLd->{'@id'} = $this->iriGenerator->iri($id); |
| 128 |
|
|
| 129 |
|
// @todo provide Event-LD context here relative to the base URI |
| 130 |
|
$placeLd->{'@context'} = '/api/1.0/place.jsonld'; |
| 131 |
|
|
| 132 |
|
return $document->withBody($placeLd); |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
/** |
| 136 |
|
* @param PlaceCreated $placeCreated |