X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=setup%2Fsrc%2FSetup.php;h=5503ae709e1660f534d2cbdfb399e0bdaf61ea2e;hb=e2a9d454389919ca46ee32f04d84cc574d07c7c3;hp=04dd426b2b3fb4eb033306c9655fe9021d4ab585;hpb=093e8cc14b638518ace7131472225302a9683eee;p=civicrm-core.git diff --git a/setup/src/Setup.php b/setup/src/Setup.php index 04dd426b2b..5503ae709e 100644 --- a/setup/src/Setup.php +++ b/setup/src/Setup.php @@ -12,7 +12,7 @@ use Civi\Setup\Event\UninstallDatabaseEvent; use Civi\Setup\Event\UninstallFilesEvent; use Civi\Setup\Exception\InitException; use Psr\Log\NullLogger; -use Symfony\Component\EventDispatcher\EventDispatcher; +use Civi\Core\CiviEventDispatcher; class Setup { @@ -70,7 +70,8 @@ class Setup { self::$instance = new Setup(); self::$instance->model = new \Civi\Setup\Model(); self::$instance->model->setValues($modelValues); - self::$instance->dispatcher = new EventDispatcher(); + self::$instance->dispatcher = new CiviEventDispatcher(); + self::$instance->dispatcher->setDispatchPolicy(['/^civi\.setup\./' => 'run', '/./' => 'fail']); self::$instance->log = $log ? $log : new NullLogger(); $pluginDir = dirname(__DIR__) . '/plugins';