Skip to content
Snippets Groups Projects
Commit fd795073 authored by Seamus Lee's avatar Seamus Lee
Browse files

Resolve rc#13 by permitting civi.setupui events to be dispatched during install

parent ee4fe559
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment