src/Provider/PiwikDeviceDetector.php 1 location
|
@@ 78-85 (lines=8) @@
|
| 75 |
|
* @param DeviceDetector $parser |
| 76 |
|
* @throws Exception\PackageNotLoaded |
| 77 |
|
*/ |
| 78 |
|
public function __construct(DeviceDetector $parser = null) |
| 79 |
|
{ |
| 80 |
|
if (! class_exists('DeviceDetector\Cache\StaticCache', true)) { |
| 81 |
|
throw new Exception\PackageNotLoadedException('You need to install ' . $this->getHomepage() . ' to use this provider'); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
$this->parser = $parser; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
/** |
| 88 |
|
* |
src/Provider/UAParser.php 1 location
|
@@ 69-76 (lines=8) @@
|
| 66 |
|
|
| 67 |
|
private $parser; |
| 68 |
|
|
| 69 |
|
public function __construct(Parser $parser = null) |
| 70 |
|
{ |
| 71 |
|
if (! class_exists('UAParser\Parser', true)) { |
| 72 |
|
throw new Exception\PackageNotLoadedException('You need to install ' . $this->getHomepage() . ' to use this provider'); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
$this->parser = $parser; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
/** |
| 79 |
|
* |
src/Provider/YzalisUAParser.php 1 location
|
@@ 70-77 (lines=8) @@
|
| 67 |
|
|
| 68 |
|
private $parser; |
| 69 |
|
|
| 70 |
|
public function __construct(\UAParser\UAParser $parser = null) |
| 71 |
|
{ |
| 72 |
|
if (! class_exists('UAParser\UAParser', true)) { |
| 73 |
|
throw new Exception\PackageNotLoadedException('You need to install ' . $this->getHomepage() . ' to use this provider'); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
$this->parser = $parser; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/** |
| 80 |
|
* |