| 1 | <?php |
| 2 | /** |
| 3 | * @file |
| 4 | * |
| 5 | * Generate the default web form. |
| 6 | */ |
| 7 | |
| 8 | if (!defined('CIVI_SETUP')) { |
| 9 | exit("Installation plugins must only be loaded by the installer.\n"); |
| 10 | } |
| 11 | |
| 12 | \Civi\Setup::dispatcher() |
| 13 | ->addListener('civi.setupui.construct', function (\Civi\Setup\UI\Event\UIConstructEvent $e) { |
| 14 | \Civi\Setup::log()->info(sprintf('[%s] Construct default UI', basename(__FILE__))); |
| 15 | |
| 16 | $e->setCtrl(new \Civi\Setup\UI\SetupController(\Civi\Setup::instance())); |
| 17 | |
| 18 | }, \Civi\Setup::PRIORITY_PREPARE); |