SetupController - Need better bootstrap to support localization
authorTim Otten <totten@civicrm.org>
Sat, 4 Jul 2020 03:54:49 +0000 (20:54 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 6 Jul 2020 08:56:13 +0000 (01:56 -0700)
commit63007742a71a26c8e64b67acdb45db0bdb9a0b75
treed5d8b5b3aca34f482ded862d88b8fc4672c6e45e
parent7fb6cf4c86cdc4e561ac2901dd2d859dc8ae3ac2
SetupController - Need better bootstrap to support localization

While trying the setup UI on Backdrop, I found that changing the language
led to a crash.  The problem: it needed to load the `l10n` files, which led
to more path resolution, which led to failures - because `civicrm.settings.php`
hasn't been loaded. (It doesn't exist yet!)

Fortunately, most of the needful information is available.  The
`Setup::init()` should have found the info and put it into `$model`.  We
just need to load the configuration into the right globals/constants.
setup/src/Setup/UI/SetupController.php