Ensured non-obfuscated IP address is passed to event listener which geolocates it

This commit is contained in:
Alejandro Celaya
2020-03-22 10:48:27 +01:00
parent cea50a860e
commit 3fef4b4a28
3 changed files with 16 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ class VisitsTracker implements VisitsTrackerInterface
$this->em->persist($visit);
$this->em->flush();
$this->eventDispatcher->dispatch(new ShortUrlVisited($visit->getId()));
$this->eventDispatcher->dispatch(new ShortUrlVisited($visit->getId(), $visitor->getRemoteAddress()));
}
/**