mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
53 lines
1.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
namespace Magento\Integration\Setup;
|
|
|
|
use Magento\Integration\Model\ConfigBasedIntegrationManager;
|
|
use Magento\Integration\Model\ConsolidatedConfig;
|
|
use Magento\Framework\Setup\InstallSchemaInterface;
|
|
use Magento\Framework\Setup\ModuleContextInterface;
|
|
use Magento\Framework\Setup\SchemaSetupInterface;
|
|
|
|
/**
|
|
* Class Recurring
|
|
*
|
|
*/
|
|
class Recurring implements InstallSchemaInterface
|
|
{
|
|
/**
|
|
* @var ConfigBasedIntegrationManager
|
|
*/
|
|
private $integrationManager;
|
|
|
|
/**
|
|
* @var ConsolidatedConfig
|
|
*/
|
|
private $integrationConfig;
|
|
|
|
/**
|
|
* Initialize dependencies
|
|
*
|
|
* @param ConfigBasedIntegrationManager $integrationManager
|
|
* @param ConsolidatedConfig $integrationConfig
|
|
*/
|
|
public function __construct(
|
|
ConfigBasedIntegrationManager $integrationManager,
|
|
ConsolidatedConfig $integrationConfig
|
|
) {
|
|
$this->integrationManager = $integrationManager;
|
|
$this->integrationConfig = $integrationConfig;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
|
|
{
|
|
$this->integrationManager->processConfigBasedIntegrations($this->integrationConfig->getIntegrations());
|
|
}
|
|
}
|