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:
authorKate Butler <kate@innocraft.com>2019-08-26 01:03:51 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-08-26 01:03:51 +0300
commit444e8415ed5e0771213be972bd96249f091fdbf1 (patch)
tree3214e4ccf3e822d45d104f7a3ab48064f3f602ef /plugins/DevicesDetection/Columns/Base.php
parent332598bdcea6d4e9e1692547f7f15c64edb5e810 (diff)
Cache parsed device detection info to file (#14751)
* Create a file cache for parsed device info * Tests for device detection file cache * Move device detector cache into separate plugin * Move WarmDeviceDetectorCache to separate plugin * Use DI to get the DeviceDetectorFactory * add device detector cache as a submodule * update submodule * update submodule * fix BC break * System test, deal with useragent strings > 500 characters long * update submodule * Update submodule
Diffstat (limited to 'plugins/DevicesDetection/Columns/Base.php')
-rw-r--r--plugins/DevicesDetection/Columns/Base.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/DevicesDetection/Columns/Base.php b/plugins/DevicesDetection/Columns/Base.php
index c837c2e0ba..efc3a6a0d7 100644
--- a/plugins/DevicesDetection/Columns/Base.php
+++ b/plugins/DevicesDetection/Columns/Base.php
@@ -8,13 +8,14 @@
*/
namespace Piwik\Plugins\DevicesDetection\Columns;
-use Piwik\DeviceDetectorFactory;
+use Piwik\Container\StaticContainer;
+use Piwik\DeviceDetector\DeviceDetectorFactory;
use Piwik\Plugin\Dimension\VisitDimension;
abstract class Base extends VisitDimension
{
protected function getUAParser($userAgent)
{
- return DeviceDetectorFactory::getInstance($userAgent);
+ return StaticContainer::get(DeviceDetectorFactory::class)->makeInstance($userAgent);
}
}