public function receive(Signal $signal)
{
if (!$signal instanceof Signal\UserService\CreateUserSignal) {
return;
}
$userContentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($signal->userId);
$this->searchHandler->indexContent($this->persistenceHandler->contentHandler()->load($userContentInfo->id, $userContentInfo->currentVersionNo));
$locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($userContentInfo->id);
foreach ($locations as $location) {
$this->searchHandler->indexLocation($location);
}
}