Use `civicrm-setup` to handle installation
Background: During installation, one must check system-requirements, populate database, etc. To do this, the Drupal 8 integration currently calls some functions from install/
.
However, the functions in the install/
folder are too narrowly crafted -- we don't have much ability to add/change/rearrange/remove installer steps. civicrm-setup aims to redress that limitation and make it easier to iterate on the installer. For any new distribution channels (like D8), we should call civicrm-setup
.
Tasks:
-
(a)
civicrm.drush.inc
: The functiondrush_civicrm_install()
must use thecivicrm-setup
API (eginstallFiles()
,installDatabase()
). -
(b)
civicrm.install
: The functioncivicrm_install()
must use setup API (eginstallFiles()
,installDatabase()
). -
(c)
civicrm.install
: The functioncivicrm_requirements()
should use the setup API (egcheckRequirements
,checkAuthorized
).