2021-10-20 18:53:43 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-16 12:50:33 +00:00
|
|
|
namespace Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions;
|
2021-10-20 18:53:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Specs data source poller class for remote free extensions.
|
|
|
|
*/
|
|
|
|
class RemoteFreeExtensionsDataSourcePoller extends \Automattic\WooCommerce\Admin\DataSourcePoller {
|
|
|
|
|
|
|
|
const ID = 'remote_free_extensions';
|
|
|
|
|
|
|
|
const DATA_SOURCES = array(
|
2021-10-29 12:47:05 +00:00
|
|
|
'https://woocommerce.com/wp-json/wccom/obw-free-extensions/3.0/extensions.json',
|
2021-10-20 18:53:43 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class instance.
|
|
|
|
*
|
|
|
|
* @var Analytics instance
|
|
|
|
*/
|
|
|
|
protected static $instance = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get class instance.
|
|
|
|
*/
|
|
|
|
public static function get_instance() {
|
|
|
|
if ( ! self::$instance ) {
|
|
|
|
self::$instance = new self(
|
|
|
|
self::ID,
|
|
|
|
self::DATA_SOURCES,
|
|
|
|
array(
|
|
|
|
'spec_key' => 'key',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
return self::$instance;
|
|
|
|
}
|
|
|
|
}
|