PiwikTracker.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace { |
| 4 | /** |
| 5 | * Matomo - free/libre analytics platform |
| 6 | * |
| 7 | * @link https://matomo.org |
| 8 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 9 | */ |
| 10 | // PiwikTracker.php is now managed by composer. To prevent breaking existing |
| 11 | // code, this file has been left as a redirect to its new location in the |
| 12 | // vendor directory. |
| 13 | if (!\class_exists('PiwikTracker')) { |
| 14 | require_once __DIR__ . '/../../vendor/matomo/matomo-php-tracker/PiwikTracker.php'; |
| 15 | } |
| 16 | if (\PiwikTracker::VERSION !== 1) { |
| 17 | throw new \Exception("Expected PiwikTracker in libs/PiwikTracker/PiwikTracker.php to be version 1 for keeping backward compatibility."); |
| 18 | } |
| 19 | } |
| 20 |