Setup API - Fail more gracefully if 'components' list is empty/missing
authorTim Otten <totten@civicrm.org>
Thu, 9 Jul 2020 01:22:50 +0000 (18:22 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 16 Jul 2020 10:05:57 +0000 (03:05 -0700)
commiteb7547e0ecb1e9d7145e45cf84a89b4254c1e681
treeb1a198f48cc977550b0fa1e8d9ca5dd6beb51891
parent2e22c7b72fdf1fc74f548f9be1615bb5531090eb
Setup API - Fail more gracefully if 'components' list is empty/missing

Use-case: You run the installer with an empty list of `components`

Before: The installer begins running - but then crashes half way through

After: The installer doesn't even begin - because the requirement-check fails.

Comment: There are guards in both `checkRequirements` and `installDatabase`.  They're slightly redundant, but not
strictly redundant (e.g.  in cases of installer bugs or wonky plugins).
setup/plugins/installDatabase/InstallComponents.civi-setup.php