From ea035836c55c5bbb0a3e71f54b45a80ff3576063 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 18 Apr 2022 20:49:30 -0400 Subject: [PATCH] symfony Event no longer exists - flexmailer --- ext/flexmailer/src/Event/BaseEvent.php | 2 +- ext/flexmailer/src/Event/CheckSendableEvent.php | 2 +- .../tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/flexmailer/src/Event/BaseEvent.php b/ext/flexmailer/src/Event/BaseEvent.php index 3ab35543ad..e621990663 100644 --- a/ext/flexmailer/src/Event/BaseEvent.php +++ b/ext/flexmailer/src/Event/BaseEvent.php @@ -14,7 +14,7 @@ namespace Civi\FlexMailer\Event; * Class BaseEvent * @package Civi\FlexMailer\Event */ -class BaseEvent extends \Symfony\Component\EventDispatcher\Event { +class BaseEvent extends \Civi\Core\Event\GenericHookEvent { /** * @var array * An array which must define options: diff --git a/ext/flexmailer/src/Event/CheckSendableEvent.php b/ext/flexmailer/src/Event/CheckSendableEvent.php index 95bdeb7b87..bc3f530a50 100644 --- a/ext/flexmailer/src/Event/CheckSendableEvent.php +++ b/ext/flexmailer/src/Event/CheckSendableEvent.php @@ -14,7 +14,7 @@ namespace Civi\FlexMailer\Event; * Class CheckSendableEvent * @package Civi\FlexMailer\Event */ -class CheckSendableEvent extends \Symfony\Component\EventDispatcher\Event { +class CheckSendableEvent extends \Civi\Core\Event\GenericHookEvent { /** * @var array diff --git a/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php b/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php index 12e8d5e69a..a104bf12d2 100644 --- a/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php +++ b/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php @@ -17,7 +17,7 @@ namespace Civi\FlexMailer; * @version $Id: Job.php 30879 2010-11-22 15:45:55Z shot $ * */ -use Symfony\Component\EventDispatcher\Event; +use Civi\Core\Event\GenericHookEvent; // For compat w/v4.6 phpunit require_once 'tests/phpunit/CRM/Mailing/BaseMailingSystemTest.php'; @@ -60,7 +60,7 @@ class FlexMailerSystemTest extends \CRM_Mailing_BaseMailingSystemTest { $this->counts = array(); } - public function handleEvent(Event $e) { + public function handleEvent(GenericHookEvent $e) { // We keep track of the events that fire during mail delivery. // At the end, we'll ensure that the correct events fired. $clazz = get_class($e); -- 2.25.1