From f421cb195d6a2339f1c17ceafe656c17e64bd006 Mon Sep 17 00:00:00 2001 From: Supun Wimalasena Date: Mon, 2 Feb 2026 04:50:08 +0100 Subject: [PATCH] changelog, license changed event --- CHANGELOG.md | 2 +- .../Event/FromCore/License/LicenseChanged.php | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 bundle/src/Comms/Event/FromCore/License/LicenseChanged.php diff --git a/CHANGELOG.md b/CHANGELOG.md index a4cf917..2d72101 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 4.0.0 - Unreleased +## 4.0.0 - 2026-02-01 - Organization support - Hyvor\Internal\Laravel\LogFake removed diff --git a/bundle/src/Comms/Event/FromCore/License/LicenseChanged.php b/bundle/src/Comms/Event/FromCore/License/LicenseChanged.php new file mode 100644 index 0000000..b2b27cc --- /dev/null +++ b/bundle/src/Comms/Event/FromCore/License/LicenseChanged.php @@ -0,0 +1,49 @@ +organizationId; + } + + public function getComponent(): Component + { + return $this->component; + } + + public function getPreviousLicense(): ResolvedLicense + { + return $this->previousLicense; + } + + public function getNewLicense(): ResolvedLicense + { + return $this->newLicense; + } + + public function from(): array + { + return [Component::CORE]; + } + + public function to(): array + { + return []; + } + +}