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-10 03:52:45 +0300
committerdiosmosis <benaka@piwik.pro>2015-08-06 17:37:59 +0300
commitc96fdb353b33234fa9e3d681ebda3365803afcb6 (patch)
tree2177b056d18f984785736fcc8d092aabdca84dde /plugins/Goals/Tracker/GoalsRequestProcessor.php
parentc38453fb46c11e997c306d88982dce58e36194d0 (diff)
Remove Visitor object from RequestProcessor::processRequest() method.
Diffstat (limited to 'plugins/Goals/Tracker/GoalsRequestProcessor.php')
-rw-r--r--plugins/Goals/Tracker/GoalsRequestProcessor.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/Goals/Tracker/GoalsRequestProcessor.php b/plugins/Goals/Tracker/GoalsRequestProcessor.php
index 9aba1375a7..5336f4fbb9 100644
--- a/plugins/Goals/Tracker/GoalsRequestProcessor.php
+++ b/plugins/Goals/Tracker/GoalsRequestProcessor.php
@@ -77,7 +77,7 @@ class GoalsRequestProcessor extends RequestProcessor
}
}
- public function processRequest(Visitor $visitor, VisitProperties $visitProperties)
+ public function processRequest(VisitProperties $visitProperties, Request $request)
{
$isManualGoalConversion = self::$goalManager->isManualGoalConversion();
$requestIsEcommerce = self::$goalManager->requestIsEcommerce;
@@ -100,15 +100,7 @@ class GoalsRequestProcessor extends RequestProcessor
// record the goals if there were conversions in this request (even if the visit itself was not converted)
if ($visitProperties->getRequestMetadata('Goals', 'someGoalsConverted')) {
- /** @var Action $action */
- $action = $visitProperties->getRequestMetadata('Actions', 'action');
-
- self::$goalManager->recordGoals(
- $visitor,
- $visitProperties->visitorInfo,
- $visitProperties->getRequestMetadata('CustomVariables', 'visitCustomVariables'),
- $action
- );
+ self::$goalManager->recordGoals($visitProperties, $request);
}
}
}