From da877b6e77d12d03585660023d61628bfa1095e1 Mon Sep 17 00:00:00 2001 From: boite Date: Tue, 25 Feb 2020 09:46:46 +0000 Subject: [PATCH] fix: make explicit the dependency on EventDispatcher contract --- composer.json | 1 + src/Event/UserLoadedEvent.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2ad4b11..1802b61 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,7 @@ "linkorb/userbase-role-contracts": "^2.0", "psr/cache": "~1.0", "symfony/cache": "~3.0 || ^4.0 || ^5.0", + "symfony/event-dispatcher-contracts": "^2.0", "symfony/security-core": "~2.6 || ~3.0 || ^4.0 || ^5.0" }, "require-dev": { diff --git a/src/Event/UserLoadedEvent.php b/src/Event/UserLoadedEvent.php index b49f2e1..f8f1819 100644 --- a/src/Event/UserLoadedEvent.php +++ b/src/Event/UserLoadedEvent.php @@ -2,7 +2,7 @@ namespace UserBase\Client\Event; -use Symfony\Component\EventDispatcher\Event; +use Symfony\Contracts\EventDispatcher\Event; use UserBase\Client\Model\User; class UserLoadedEvent extends Event