Update CRM_Utils_Constant::value to support env variables
authoreileen <emcnaughton@wikimedia.org>
Tue, 20 Oct 2020 02:27:00 +0000 (15:27 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 20 Oct 2020 07:05:15 +0000 (20:05 +1300)
commitf9920e29e57e793ddfbf6d80e33ac1bfc4b25179
tree6578724edc1a0902e87ac91de2b336288acf6424
parent42dada11f3a61750f53caaa694581912f206664f
Update CRM_Utils_Constant::value to support env variables

This is something I discussed with @totten earlier but as the rc was being cut at the time
we went for the more conservative approach of only adding env support to thhe debug_query
function.  This extends to all defines - meaning they can be defined at the script level e.

env CIVICRM_DEBUG_LOG_QUERY=backtrace drush cvapi

(that already works)
CRM/Core/Error.php
CRM/Utils/Constant.php