46 \
Magento\Integration\Api\IntegrationServiceInterface $integrationService,
50 $this->_integrationService = $integrationService;
64 public function afterProcessIntegrationConfig(
68 if (empty($integrationNames)) {
72 $integrations = $this->integrationConfig->getIntegrations();
73 foreach ($integrationNames as
$name) {
74 if (isset($integrations[
$name])) {
77 $this->integrationAuthorizationService->grantPermissions(
79 $integrations[
$name][
'resource']
84 return $integrationNames;
100 if (empty($integrations)) {
104 foreach (array_keys($integrations) as
$name) {
107 $this->integrationAuthorizationService->grantPermissions(
109 $integrations[
$name][
'resource']
113 return $integrations;
$integrationAuthorizationService
afterProcessConfigBasedIntegrations(ConfigBasedIntegrationManager $subject, $integrations)
__construct(IntegrationAuthorizationInterface $integrationAuthorizationService, \Magento\Integration\Api\IntegrationServiceInterface $integrationService, IntegrationConfig $integrationConfig)
if(!isset($_GET['name'])) $name