src/Provider/PiwikDeviceDetector.php 1 location
|
@@ 57-64 (lines=8) @@
|
| 54 |
|
* @param DeviceDetector $parser |
| 55 |
|
* @throws Exception\PackageNotLoaded |
| 56 |
|
*/ |
| 57 |
|
public function __construct(DeviceDetector $parser = null) |
| 58 |
|
{ |
| 59 |
|
if (! class_exists('DeviceDetector\Cache\StaticCache', true)) { |
| 60 |
|
throw new Exception\PackageNotLoaded('You need to install ' . $this->getComposerPackageName() . ' to use this provider'); |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
$this->parser = $parser; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
public function getName() |
| 67 |
|
{ |
src/Provider/UAParser.php 1 location
|
@@ 48-55 (lines=8) @@
|
| 45 |
|
|
| 46 |
|
private $parser; |
| 47 |
|
|
| 48 |
|
public function __construct(Parser $parser = null) |
| 49 |
|
{ |
| 50 |
|
if (! class_exists('UAParser\Parser', true)) { |
| 51 |
|
throw new Exception\PackageNotLoaded('You need to install ' . $this->getComposerPackageName() . ' to use this provider'); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
$this->parser = $parser; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public function getName() |
| 58 |
|
{ |
src/Provider/YzalisUAParser.php 1 location
|
@@ 49-56 (lines=8) @@
|
| 46 |
|
|
| 47 |
|
private $parser; |
| 48 |
|
|
| 49 |
|
public function __construct(\UAParser\UAParser $parser = null) |
| 50 |
|
{ |
| 51 |
|
if (! class_exists('UAParser\UAParser', true)) { |
| 52 |
|
throw new Exception\PackageNotLoaded('You need to install ' . $this->getComposerPackageName() . ' to use this provider'); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
$this->parser = $parser; |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function getName() |
| 59 |
|
{ |