Age | Commit message (Collapse) | Author |
|
|
|
|
|
* update doc blocks with new name
* submodule updates
* updates expected UI files
|
|
|
|
|
|
|
|
|
|
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.
|
|
* platform tweaks
* prevent failing if loaded twice
* Update Config.php
* Update PluginList.php
* Update Config.php
* Update IniFileChain.php
* Update Config.php
* Update Config.php
* allow configure different path for custom logo
* only show install plugin button when activated
* allow disable users and sites management
* do not allow calling set super user access
* Update PluginList.php
* Update Config.php
* Update global.ini.php
* Update Config.php
* Update global.ini.php
|
|
|
|
* support config cache
* make cache work
* minor tweak
* add tests
* update test
|
|
I updated the link tag for all php files with the new matomo link.
Not sure if it is realistic that this will get merged but I though that someday someone has to do this(?)
|
|
|
|
BTW: The method name Config::forceSave is kinda wrong as it does not
force anything, it saves only if there is a change
|
|
|
|
|
|
|
|
Conflicts:
config/global.php
core/CliMulti/RequestCommand.php
core/Config.php
core/Config/IniFileChain.php
tests/PHPUnit/System/BlobReportLimitingTest.php
tests/PHPUnit/TestingEnvironment.php
tests/PHPUnit/Unit/Config/IniFileChainTest.php
tests/PHPUnit/Unit/ConfigTest.php
|
|
used to avoid issues w/ parse_ini_file() use.
|
|
since they are vital to correctly storing/loading settings w/o strange bugs.
|
|
|
|
behavior when INI files are gone or corrupt from each Piwik endpoint (tracker/reporting UI/console). Hacked test code to make it possible and for some tests to pass.
|
|
IniSettingsProvider.
|
|
|
|
added to Config.
|
|
|
|
order. Bug occurs due to incorrect sorting that sorts sections according to which files they appear in, but not where they appear in individual files.
|
|
related file checking (both in code & in time (so done in one place in code & one time in execution)).
|
|
|
|
base class + ability to override environment in UnitTestCase.
|
|
|
|
The container now uses IniFileChain, which means it doesn't need the Config object anymore.
|
|
file is completely empty and add test case. Also add type hint to IniFileChain::__construct.
|
|
file chain.
|
|
file chain the expected behavior.
|
|
the config file is erased. Also sort config sections w/ case insensitive search.
|
|
Conflicts:
core/Config.php
|
|
|
|
the exception and augment message w/ file being read in IniFileChain. Also includes some mild refactoring to IniFileChain.
|
|
inherit and get tests to pass.
|
|
class. This is an intermediate step in allowing Config/Plugin\Manager to exist in DI.
|
|
Piwik::createConfigObject function.
|
|
Converting Piwik core source files, PHP, JS, TPL, CSS
More info: http://piwik.org/participate/coding-standards/
|
|
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@6446 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@6353 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@6300 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@6029 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
git-svn-id: http://dev.piwik.org/svn/trunk@6028 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|
|
integration tests run
git-svn-id: http://dev.piwik.org/svn/trunk@5968 59fd770c-687e-43c8-a1e3-f5a4ff64c105
|