Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-10-13 23:44:05 +0300
committerGitHub <noreply@github.com>2019-10-13 23:44:05 +0300
commit608cfdb34341d0f07aa4bacef913975e3799e028 (patch)
tree27e2b367e3474ce35bf3b2219834dd117e9e4f37 /plugins/CoreVisualizations
parentddcf02cd07088a03ef5459f7daff4f7f1f971d1c (diff)
Allow bootstrap file to manipulate config settings (#15001)
Allows a bootstrap file to change config settings like by creating a `bootstrap.php` and then having eg ```php $GLOBALS['MATOMO_MODIFY_CONFIG_SETTINGS'] = function ($settings) { $settings['Plugins'][] = 'MyPlugin'; return $settings; }); ``` It's mainly useful to configure the list of plugins as pretty much all other settings can be configured through DI when the config is being created. I was doing this initially here as well for quite some time until I noticed a problem with an incompatible plugin and had to do it this way. The problem is that when changing the list of activated plugins dynamically through DI, then the plugin config.php files aren't loaded correctly. The order is: 1. Get activated plugins 2. Load plugin config.php files when building DI container 3. Run DI container for config class This means when adding eg TagManager through DI to the list of activated plugins then the config.php of TagManager will never be loaded and it always results in errors. Instead of in step 3 I needed to make the change in step 1. Not documenting this for now as it would usually never be needed and we don't want to support this just yet.
Diffstat (limited to 'plugins/CoreVisualizations')
0 files changed, 0 insertions, 0 deletions