| @@ 291-298 (lines=8) @@ | ||
| 288 | ||
| 289 | // Fire a LabelsImported for all new labels. |
|
| 290 | $importLabels = new Labels(); |
|
| 291 | foreach ($addedLabels->asArray() as $addedLabel) { |
|
| 292 | $importLabels = $importLabels->with( |
|
| 293 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
|
| 294 | new LabelName((string) $addedLabel), |
|
| 295 | $addedLabel->isVisible() |
|
| 296 | ) |
|
| 297 | ); |
|
| 298 | } |
|
| 299 | if ($importLabels->count() > 0) { |
|
| 300 | $this->apply($this->createLabelsImportedEvent($importLabels)); |
|
| 301 | } |
|
| @@ 272-279 (lines=8) @@ | ||
| 269 | ||
| 270 | // Fire a LabelsImported for all new labels. |
|
| 271 | $importLabels = new Labels(); |
|
| 272 | foreach ($addedLabels->asArray() as $addedLabel) { |
|
| 273 | $importLabels = $importLabels->with( |
|
| 274 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
|
| 275 | new LabelName((string) $addedLabel), |
|
| 276 | $addedLabel->isVisible() |
|
| 277 | ) |
|
| 278 | ); |
|
| 279 | } |
|
| 280 | if ($importLabels->count() > 0) { |
|
| 281 | $this->apply(new LabelsImported( |
|
| 282 | $this->actorId, |
|