diff options
author | diosmosis <benaka@piwik.pro> | 2015-07-10 06:44:05 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-08-06 17:37:59 +0300 |
commit | df6a92196d292510a0744c4eae3ff861a3136899 (patch) | |
tree | 09a2007553dced98f447c0dd4be1b6f7225fe2f5 /core/Tracker/Visitor.php | |
parent | 31b93051749f8e7a2f4f8a7ac0fc52124af525f5 (diff) |
Change RequestProcessor method names and remove need to supply Request to Visitor object.
Diffstat (limited to 'core/Tracker/Visitor.php')
-rw-r--r-- | core/Tracker/Visitor.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/Tracker/Visitor.php b/core/Tracker/Visitor.php index efa88a8d96..c8ec1802bd 100644 --- a/core/Tracker/Visitor.php +++ b/core/Tracker/Visitor.php @@ -9,7 +9,6 @@ namespace Piwik\Tracker; use Piwik\Config; -use Piwik\Container\StaticContainer; use Piwik\Plugin\Dimension\VisitDimension; use Piwik\Tracker; use Piwik\Tracker\Visit\VisitProperties; @@ -17,20 +16,18 @@ use Piwik\Tracker\Visit\VisitProperties; class Visitor { private $visitorKnown = false; - private $request; private $visitProperties; - public function __construct(Request $request, VisitProperties $visitProperties, $isVisitorKnown = false) + public function __construct(VisitProperties $visitProperties, $isVisitorKnown = false) { - $this->request = $request; $this->visitProperties = $visitProperties; $this->setIsVisitorKnown($isVisitorKnown); } - public static function makeFromVisitProperties(VisitProperties $visitProperties, Request $request) + public static function makeFromVisitProperties(VisitProperties $visitProperties) { $isKnown = $visitProperties->getRequestMetadata('CoreHome', 'isVisitorKnown'); - return new Visitor($request, $visitProperties, $isKnown); + return new Visitor($visitProperties, $isKnown); } public function setVisitorColumn($column, $value) // TODO: remove this eventually |