* Generate configuration files
*/
class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask {
+
public function run() {
$this->setupCms();
}
'drupal8',
'joomla',
'wordpress',
+ 'standalone',
])) {
echo "Config file for '{$this->config->cms}' not known.";
exit();
* path to config template
*/
public function findConfigTemplate($cms) {
+ if (getenv('GENCODE_CONFIG_TEMPLATE')) {
+ return getenv('GENCODE_CONFIG_TEMPLATE');
+ }
+
$candidates = [];
switch ($cms) {
case 'backdrop':
$candidates[] = "../../../modules/civicrm-drupal/civicrm.config.php.drupal";
break;
+ case 'standalone':
+ $candidates[] = "../../../../civicrm.config.php.standalone";
+ break;
+
case 'wordpress':
$candidates[] = "../../civicrm.config.php.wordpress";
$candidates[] = "../WordPress/civicrm.config.php.wordpress";