(dev/cloud-native#3) configAndLogDir,templateCompileDir - Move from "Runtime" to...
authorTim Otten <totten@civicrm.org>
Wed, 3 Jul 2019 01:08:20 +0000 (18:08 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 16 Jul 2019 01:58:12 +0000 (18:58 -0700)
commit0bd3f65c109ae435fb3b43de5eaa4086e862cf05
tree1ec8e2a90a028c742e7d25e7a55a457ebc46b6d4
parent00f6fb2ae8bf8755cc23da90b03104b4686a9a97
(dev/cloud-native#3) configAndLogDir,templateCompileDir - Move from "Runtime" to "Paths". Use hierarchy.

This slightly changes the computation of the private log and compilation
directories so that:

* The definition appears more declarative.
* The default is computed on-demand (i.e. later in the process).
* The values can be overriden more intuitively.

Before
------

The properties `$config->configAndLogDir` and `$config->templateCompileDir`
are computed as part of a procedural initialization step in
`CRM_Core_Config_Runtime`.

After
-----

The properties `$config->configAndLogDir` and `$config->templateCompileDir`
are computed on-demand by `Civi\Core\Paths`.

The values of these properties may:

* Be computed automatically in a way that matches the previous output
  (i.e.  `configAndLogDir`=~`CIVICRM_TEMPLATE_COMPILEDIR/../configAndLog`;
  `templateCompileDir`=~`CIVICRM_TEMPLATE_COMPILEDIR`).
* Be customized as a pair (by setting `civicrm.private`)
* Be customized individually (by setting `civicrm.logs` or `civicrm.compile`).
CRM/Core/Config/MagicMerge.php
CRM/Core/Config/Runtime.php
Civi/Core/Paths.php