diff options
author | Kate Butler <kate@innocraft.com> | 2019-08-26 01:03:51 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-08-26 01:03:51 +0300 |
commit | 444e8415ed5e0771213be972bd96249f091fdbf1 (patch) | |
tree | 3214e4ccf3e822d45d104f7a3ab48064f3f602ef /plugins/DevicesDetection/Columns/Base.php | |
parent | 332598bdcea6d4e9e1692547f7f15c64edb5e810 (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.php | 5 |
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); } } |