Commit | Line | Data |
---|---|---|
4bcd4c62 TO |
1 | <?php |
2 | /** | |
3 | * @file | |
4 | * | |
5 | * Build a list of available CiviCRM components. | |
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.setup.init', function (\Civi\Setup\Event\InitEvent $e) { | |
14 | \Civi\Setup::log()->info(sprintf('[%s] Handle %s', basename(__FILE__), 'init')); | |
15 | ||
16 | if (!$e->getModel()->setupPath) { | |
17 | $e->getModel()->setupPath = dirname(dirname(__DIR__)); | |
18 | } | |
19 | ||
20 | }, \Civi\Setup::PRIORITY_START); |