|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/KMU-CSR-PLANER/wp-content/plugins/matomo/app/plugins/Marketplace/config/ |
Upload File : |
<?php
namespace {
use Piwik\Config\GeneralConfig;
use Piwik\Plugins\Marketplace\Api\Service;
use Piwik\Plugins\Marketplace\LicenseKey;
use Piwik\Container\Container;
return array('MarketplaceEndpoint' => function (Container $c) {
$domain = 'plugins.matomo.org';
if (GeneralConfig::getConfigValue('force_matomo_http_request') == 1) {
return 'http://' . $domain;
}
return 'https://' . $domain;
}, 'Piwik\\Plugins\\Marketplace\\Api\\Service' => function (Container $c) {
/** @var Service $previous */
$domain = $c->get('MarketplaceEndpoint');
$service = new Service($domain);
$key = new LicenseKey();
$accessToken = $key->get();
$service->authenticate($accessToken);
return $service;
});
}