| 1 |
<?php |
| 2 |
/** |
| 3 |
* Integration: Service provider |
| 4 |
* |
| 5 |
* @package SimplePay |
| 6 |
* @subpackage Core |
| 7 |
* @copyright Copyright (c) 2022, Sandhills Development, LLC |
| 8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 |
* @since 4.4.3 |
| 10 |
*/ |
| 11 |
|
| 12 |
namespace SimplePay\Core\Integration; |
| 13 |
|
| 14 |
use SimplePay\Core\AbstractPluginServiceProvider; |
| 15 |
|
| 16 |
/** |
| 17 |
* IntegrationServiceProvider class. |
| 18 |
* |
| 19 |
* @since 4.4.3 |
| 20 |
*/ |
| 21 |
class IntegrationServiceProvider extends AbstractPluginServiceProvider { |
| 22 |
|
| 23 |
/** |
| 24 |
* {@inheritdoc} |
| 25 |
*/ |
| 26 |
public function get_services() { |
| 27 |
return array(); |
| 28 |
} |
| 29 |
|
| 30 |
/** |
| 31 |
* {@inheritdoc} |
| 32 |
*/ |
| 33 |
public function get_subscribers() { |
| 34 |
return array(); |
| 35 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* {@inheritdoc} |
| 39 |
*/ |
| 40 |
public function get_service_providers() { |
| 41 |
$providers = array( |
| 42 |
new Divi\DiviIntegration, |
| 43 |
new Elementor\ElementorIntegration, |
| 44 |
new WPCode\WPCodeIntegration, |
| 45 |
); |
| 46 |
|
| 47 |
return array_filter( |
| 48 |
$providers, |
| 49 |
function( $integration ) { |
| 50 |
return $integration->is_active(); |
| 51 |
} |
| 52 |
); |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* {@inheritdoc} |
| 57 |
*/ |
| 58 |
public function register() { |
| 59 |
// Nothing to register. |
| 60 |
} |
| 61 |
|
| 62 |
} |
| 63 |
|