From 6b6d751d549bca7d1e519c67c322e7026dbdc308 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 17 Jan 2021 11:40:30 +0100 Subject: [PATCH] Updated to shlinkio/shlink-event-dispatcher 2 --- composer.json | 2 +- module/Core/src/EventDispatcher/{ => Event}/ShortUrlVisited.php | 2 +- module/Core/src/EventDispatcher/{ => Event}/VisitLocated.php | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename module/Core/src/EventDispatcher/{ => Event}/ShortUrlVisited.php (95%) rename module/Core/src/EventDispatcher/{ => Event}/VisitLocated.php (100%) diff --git a/composer.json b/composer.json index f7835b3f..ada2facc 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "ramsey/uuid": "^3.9", "shlinkio/shlink-common": "dev-main#1311861 as 3.4", "shlinkio/shlink-config": "^1.0", - "shlinkio/shlink-event-dispatcher": "^1.6", + "shlinkio/shlink-event-dispatcher": "^2.0", "shlinkio/shlink-importer": "^2.1", "shlinkio/shlink-installer": "^5.3", "shlinkio/shlink-ip-geolocation": "^1.5", diff --git a/module/Core/src/EventDispatcher/ShortUrlVisited.php b/module/Core/src/EventDispatcher/Event/ShortUrlVisited.php similarity index 95% rename from module/Core/src/EventDispatcher/ShortUrlVisited.php rename to module/Core/src/EventDispatcher/Event/ShortUrlVisited.php index c33f805a..2cac3dbc 100644 --- a/module/Core/src/EventDispatcher/ShortUrlVisited.php +++ b/module/Core/src/EventDispatcher/Event/ShortUrlVisited.php @@ -29,6 +29,6 @@ final class ShortUrlVisited implements JsonSerializable public function jsonSerialize(): array { - return ['visitId' => $this->visitId, 'originalIpAddress' => $this->originalIpAddress]; + return ['visitId' => $this->visitId, 'originalIpAddress' => '']; } } diff --git a/module/Core/src/EventDispatcher/VisitLocated.php b/module/Core/src/EventDispatcher/Event/VisitLocated.php similarity index 100% rename from module/Core/src/EventDispatcher/VisitLocated.php rename to module/Core/src/EventDispatcher/Event/VisitLocated.php