From f6ecd626815cd7faf0208c78152fefe6d12c5d53 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Thu, 18 Aug 2022 20:18:29 -0400 Subject: [PATCH] use unoptimized dispatcher --- Civi/Core/CiviEventDispatcher.php | 3 +-- Civi/Core/UnoptimizedEventDispatcher.php | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 Civi/Core/UnoptimizedEventDispatcher.php diff --git a/Civi/Core/CiviEventDispatcher.php b/Civi/Core/CiviEventDispatcher.php index 11c7c048a7..054bd76675 100644 --- a/Civi/Core/CiviEventDispatcher.php +++ b/Civi/Core/CiviEventDispatcher.php @@ -4,7 +4,6 @@ namespace Civi\Core; use Civi\Core\Event\GenericHookEvent; use Civi\Core\Event\HookStyleListener; -use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** @@ -61,7 +60,7 @@ class CiviEventDispatcher implements CiviEventDispatcherInterface { * Constructor */ public function __construct() { - $this->dispatcher = new EventDispatcher(); + $this->dispatcher = new UnoptimizedEventDispatcher(); } /** diff --git a/Civi/Core/UnoptimizedEventDispatcher.php b/Civi/Core/UnoptimizedEventDispatcher.php new file mode 100644 index 0000000000..01fa40bc93 --- /dev/null +++ b/Civi/Core/UnoptimizedEventDispatcher.php @@ -0,0 +1,18 @@ +