From fd7950734cb072ecd591217429a03f00cb0aa218 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 13 Jul 2021 07:58:25 +1000 Subject: [PATCH] Resolve dev/rc#13 by permitting civi.setupui events to be dispatched during install --- setup/src/Setup.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/src/Setup.php b/setup/src/Setup.php index 5503ae709e..0ad56851d8 100644 --- a/setup/src/Setup.php +++ b/setup/src/Setup.php @@ -71,7 +71,11 @@ class Setup { self::$instance->model = new \Civi\Setup\Model(); self::$instance->model->setValues($modelValues); self::$instance->dispatcher = new CiviEventDispatcher(); - self::$instance->dispatcher->setDispatchPolicy(['/^civi\.setup\./' => 'run', '/./' => 'fail']); + self::$instance->dispatcher->setDispatchPolicy([ + '/^civi\.setup\./' => 'run', + '/^civi\.setupui\./' => 'run', + '/./' => 'fail', + ]); self::$instance->log = $log ? $log : new NullLogger(); $pluginDir = dirname(__DIR__) . '/plugins'; -- 2.25.1