blob: 98de70b86ee2f74da8cf6661b166976b5622bb61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
return array(
'Piwik\Plugins\FileSynchronizer\Settings' => DI\decorate(function (\Piwik\Plugins\FileSynchronizer\Settings $settings) {
if ($settings->enabled->isWritableByCurrentUser()) {
$path = PIWIK_INCLUDE_PATH;
if (\Piwik\Common::stringEndsWith($path, '/')) {
$path = substr($path, 0, -1);
}
$settings->enabled->setValue(true);
$settings->filePattern->setValue('*.log');
$settings->sourceDirectory->setValue($path . '/plugins/FileSynchronizer/tests/resources/source');
$settings->targetDirectory->setValue($path . '/plugins/FileSynchronizer/tests/resources/target');
$settings->targetFilenameTemplate->setValue('$basename_$filename_idsite_1_.$extension');
}
return $settings;
}),
'FileSynchronizer.currentTimestamp' => '1440592473'
);
|