Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Move configAndLogDir/templateCompileDir from "Runtime" to "Paths" (compat variant) #14719

Closed
wants to merge 6 commits into from

Conversation

totten
Copy link
Member

@totten totten commented Jul 3, 2019

(Description TBD. Note: This is the variant which prioritizes more precise continuity with the existing behavior.)

herbdool and others added 6 commits July 2, 2019 17:08
…o "Paths" (prioritize compat)

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`).
@civibot civibot bot added the master label Jul 3, 2019
@civibot
Copy link

civibot bot commented Jul 3, 2019

(Standard links)

@totten
Copy link
Member Author

totten commented Jul 3, 2019

jenkins, test this please

@totten
Copy link
Member Author

totten commented Jul 10, 2019

Closing in favor of #14718.

@totten totten closed this Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants