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:
authordiosmosis <benaka@piwik.pro>2015-07-24 03:02:51 +0300
committerdiosmosis <benaka@piwik.pro>2015-07-24 03:02:51 +0300
commitfc3c03185edbafd401b5605a16c488a0760b2e8b (patch)
treee6138e298fdee8187ee562914279efd3aa7215ba /plugins/CoreConsole
parent922f38be45107db60873ae637b840c65f8f666c4 (diff)
Fixes #8316, re-add core:archive URL override functionality for users that do not use systems that support CLI archiving.
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r--plugins/CoreConsole/Commands/CoreArchiver.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/CoreConsole/Commands/CoreArchiver.php b/plugins/CoreConsole/Commands/CoreArchiver.php
index cfe7905d3d..7fc453bf3f 100644
--- a/plugins/CoreConsole/Commands/CoreArchiver.php
+++ b/plugins/CoreConsole/Commands/CoreArchiver.php
@@ -23,12 +23,12 @@ class CoreArchiver extends ConsoleCommand
protected function execute(InputInterface $input, OutputInterface $output)
{
- $archiver = self::makeArchiver("", $input);
+ $archiver = self::makeArchiver($input->getOption('url'), $input);
$archiver->main();
}
// also used by another console command
- public static function makeArchiver($url, InputInterface $input) // TODO: remove url from this function
+ public static function makeArchiver($url, InputInterface $input)
{
$archiver = new CronArchive();
@@ -56,6 +56,8 @@ class CoreArchiver extends ConsoleCommand
$segmentIds = array_map('trim', $segmentIds);
$archiver->setSegmentsToForceFromSegmentIds($segmentIds);
+ $archiver->setUrlToPiwik($url);
+
return $archiver;
}
@@ -75,7 +77,10 @@ class CoreArchiver extends ConsoleCommand
but it is recommended to run it via command line/CLI instead.
* If you have any suggestion about this script, please let the team know at feedback@piwik.org
* Enjoy!");
- $command->addOption('url', null, InputOption::VALUE_REQUIRED, "Deprecated.");
+ $command->addOption('url', null, InputOption::VALUE_REQUIRED,
+ "Deprecated. Forces the value of this option to be used as the URL to Piwik. If your system does not support"
+ . " archiving with CLI processes, you may need to set this in order for the archiving HTTP requests to use"
+ . " the desired URLs.");
$command->addOption('force-all-websites', null, InputOption::VALUE_NONE,
"If specified, the script will trigger archiving on all websites.\nUse with --force-all-periods=[seconds] "
. "to also process those websites that had visits in the last [seconds] seconds.\nLaunching several processes"