GenCode - Optionaly allow direct control over civicrm.config.php template
authorTim Otten <totten@civicrm.org>
Thu, 16 Jan 2020 01:22:05 +0000 (17:22 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 28 Jan 2020 22:57:11 +0000 (14:57 -0800)
CRM/Core/CodeGen/Config.php

index 8853913d98a40c8409a503663b6a1caa976cf015..aa50e059577a81794bd8228a966167b73b0d0910 100644 (file)
@@ -39,6 +39,10 @@ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask {
    *   path to config template
    */
   public function findConfigTemplate($cms) {
+    if (getenv('GENCODE_CONFIG_TEMPLATE')) {
+      return getenv('GENCODE_CONFIG_TEMPLATE');
+    }
+
     $candidates = [];
     switch ($cms) {
       case 'backdrop':