diff options
Diffstat (limited to 'config/environment')
-rw-r--r-- | config/environment/dev.php | 2 | ||||
-rw-r--r-- | config/environment/test.php | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config/environment/dev.php b/config/environment/dev.php index ab095a7aa5..0a730d708c 100644 --- a/config/environment/dev.php +++ b/config/environment/dev.php @@ -2,6 +2,8 @@ return array( + 'Piwik\Cache\Backend' => DI\object('Piwik\Cache\Backend\ArrayCache'), + 'Piwik\Translation\Loader\LoaderInterface' => DI\object('Piwik\Translation\Loader\LoaderCache') ->constructor(DI\link('Piwik\Translation\Loader\DevelopmentLoader')), 'Piwik\Translation\Loader\DevelopmentLoader' => DI\object() diff --git a/config/environment/test.php b/config/environment/test.php index 0dfd6d9770..4eac327a6e 100644 --- a/config/environment/test.php +++ b/config/environment/test.php @@ -5,8 +5,11 @@ return array( // Disable logging 'Psr\Log\LoggerInterface' => DI\object('Psr\Log\NullLogger'), - // Disable translation cache - 'Piwik\Translation\Loader\LoaderInterface' => DI\object('Piwik\Translation\Loader\JsonFileLoader'), + 'Piwik\Cache\Backend' => function () { + return \Piwik\Cache::buildBackend('file'); + }, + 'cache.eager.cache_id' => 'eagercache-test-', + // Disable loading core translations 'Piwik\Translation\Translator' => DI\object() ->constructorParameter('directories', array()), |