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>2018-05-21 03:51:10 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-05-21 03:51:10 +0300
commit7b1d0cb60f010c9209f1ab96d72685b845f7e440 (patch)
tree34b23fd82587940c9fe9dde091f9e30c0af5972e /plugins/CustomPiwikJs
parent479f34ebe8e0e0bc00d1601c956098b9e1aa3eb8 (diff)
Fix DI is not used in tracker updater command (#12944)
This means that when someone is decorating this class, it is not being executed.
Diffstat (limited to 'plugins/CustomPiwikJs')
-rw-r--r--plugins/CustomPiwikJs/Commands/UpdateTracker.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/CustomPiwikJs/Commands/UpdateTracker.php b/plugins/CustomPiwikJs/Commands/UpdateTracker.php
index 6da2ab3684..f336b691ee 100644
--- a/plugins/CustomPiwikJs/Commands/UpdateTracker.php
+++ b/plugins/CustomPiwikJs/Commands/UpdateTracker.php
@@ -55,7 +55,9 @@ class UpdateTracker extends ConsoleCommand
$pluginTrackerFiles->ignoreMinified();
}
- $updater = new TrackerUpdater($sourceFile, $targetFile);
+ $updater = StaticContainer::getContainer()->make('Piwik\Plugins\CustomPiwikJs\TrackerUpdater', array(
+ 'fromFile' => $sourceFile, 'toFile' => $targetFile
+ ));
$updater->setTrackerFiles($pluginTrackerFiles);
$updater->checkWillSucceed();
$updater->update();