WebEntrypoint
in package
Logic for loading web pages (would be in index.php, but here we can update it)
Table of Contents
Methods
- index() : void
- If we think Civi is installed, run the page
- installer() : void
- invoke() : void
- Standalone specific wrapper for CRM_Core_Invoke - ensures config container is booted - handles the route args
- checkCiviInstalled() : bool
- Determine whether to display the web-based installer.
Methods
index()
If we think Civi is installed, run the page
public
static index() : void
Otherwise show the Web installer
Tags
installer()
public
static installer() : void
invoke()
Standalone specific wrapper for CRM_Core_Invoke - ensures config container is booted - handles the route args
public
static invoke() : void
checkCiviInstalled()
Determine whether to display the web-based installer.
private
static checkCiviInstalled() : bool
If civicrm.settings.php
(CIVICRM_SETTINGS_PATH) has been loaded, then the database
should already be installed, and we won't re-run the installer.
It is probably a good idea to disallow re-installation here. e.g. you dont want to show the installer if your database goes down (especially as the standalone installer is permissionless - no cms user accounts! - and may even know your database credentials if these are provided as env variables)