Skip to content

Commit 376fa53

Browse files
Merge branch '2.4-develop' into 2.4-develop-prs
2 parents 426b2c4 + e235082 commit 376fa53

File tree

340 files changed

+5330
-2932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+5330
-2932
lines changed

app/code/Magento/AdminAdobeIms/Api/Data/ImsWebapiInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Api\Data;

app/code/Magento/AdminAdobeIms/Api/Data/ImsWebapiSearchResultsInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Api\Data;

app/code/Magento/AdminAdobeIms/Api/ImsLogOutInterface.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

app/code/Magento/AdminAdobeIms/Api/ImsWebapiRepositoryInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Api;

app/code/Magento/AdminAdobeIms/App/Action/Plugin/Authentication.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\App\Action\Plugin;

app/code/Magento/AdminAdobeIms/Block/Adminhtml/System/Config/Form/Field/Disabled.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Block\Adminhtml\System\Config\Form\Field;

app/code/Magento/AdminAdobeIms/Console/Command/AdminAdobeImsDisableCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Console\Command;

app/code/Magento/AdminAdobeIms/Console/Command/AdminAdobeImsEnableCommand.php

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Console\Command;
109

11-
use Magento\AdminAdobeIms\Model\ImsConnection;
12-
use Magento\AdminAdobeIms\Service\UpdateTokensService;
1310
use Magento\AdminAdobeIms\Service\ImsCommandOptionService;
1411
use Magento\AdminAdobeIms\Service\ImsConfig;
12+
use Magento\AdminAdobeIms\Service\UpdateTokensService;
13+
use Magento\AdobeImsApi\Api\AuthorizationInterface;
1514
use Magento\Framework\App\Cache\Type\Config;
1615
use Magento\Framework\App\Cache\TypeListInterface;
1716
use Magento\Framework\Console\Cli;
@@ -53,11 +52,6 @@ class AdminAdobeImsEnableCommand extends Command
5352
*/
5453
private ImsConfig $adminImsConfig;
5554

56-
/**
57-
* @var ImsConnection
58-
*/
59-
private ImsConnection $adminImsConnection;
60-
6155
/**
6256
* @var ImsCommandOptionService
6357
*/
@@ -73,26 +67,31 @@ class AdminAdobeImsEnableCommand extends Command
7367
*/
7468
private UpdateTokensService $updateTokensService;
7569

70+
/**
71+
* @var AuthorizationInterface
72+
*/
73+
private AuthorizationInterface $authorization;
74+
7675
/**
7776
* @param ImsConfig $adminImsConfig
78-
* @param ImsConnection $adminImsConnection
7977
* @param ImsCommandOptionService $imsCommandOptionService
8078
* @param TypeListInterface $cacheTypeList
8179
* @param UpdateTokensService $updateTokensService
80+
* @param AuthorizationInterface $authorization
8281
*/
8382
public function __construct(
8483
ImsConfig $adminImsConfig,
85-
ImsConnection $adminImsConnection,
8684
ImsCommandOptionService $imsCommandOptionService,
8785
TypeListInterface $cacheTypeList,
88-
UpdateTokensService $updateTokensService
86+
UpdateTokensService $updateTokensService,
87+
AuthorizationInterface $authorization
8988
) {
9089
parent::__construct();
9190
$this->adminImsConfig = $adminImsConfig;
92-
$this->adminImsConnection = $adminImsConnection;
9391
$this->imsCommandOptionService = $imsCommandOptionService;
9492
$this->cacheTypeList = $cacheTypeList;
9593
$this->updateTokensService = $updateTokensService;
94+
$this->authorization = $authorization;
9695

9796
$this->setName('admin:adobe-ims:enable')
9897
->setDescription('Enable Adobe IMS Module.')
@@ -199,7 +198,7 @@ private function enableModule(
199198
string $organizationId,
200199
bool $isTwoFactorAuthEnabled
201200
): bool {
202-
$testAuth = $this->adminImsConnection->testAuth($clientId);
201+
$testAuth = $this->authorization->testAuth($clientId);
203202
if ($testAuth) {
204203
$this->adminImsConfig->enableModule($clientId, $clientSecret, $organizationId, $isTwoFactorAuthEnabled);
205204
$this->cacheTypeList->cleanType(Config::TYPE_IDENTIFIER);

app/code/Magento/AdminAdobeIms/Console/Command/AdminAdobeImsInfoCommand.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Console\Command;
109

11-
use Magento\AdminAdobeIms\Model\ImsConnection;
1210
use Magento\AdminAdobeIms\Service\ImsConfig;
11+
use Magento\AdobeImsApi\Api\AuthorizationInterface;
1312
use Magento\Framework\Console\Cli;
1413
use Symfony\Component\Console\Command\Command;
1514
use Symfony\Component\Console\Input\InputInterface;
@@ -41,21 +40,21 @@ class AdminAdobeImsInfoCommand extends Command
4140
private ImsConfig $adminImsConfig;
4241

4342
/**
44-
* @var ImsConnection
43+
* @var AuthorizationInterface
4544
*/
46-
private ImsConnection $adminImsConnection;
45+
private AuthorizationInterface $authorization;
4746

4847
/**
4948
* @param ImsConfig $adminImsConfig
50-
* @param ImsConnection $adminImsConnection
49+
* @param AuthorizationInterface $authorization
5150
*/
5251
public function __construct(
5352
ImsConfig $adminImsConfig,
54-
ImsConnection $adminImsConnection
53+
AuthorizationInterface $authorization
5554
) {
5655
parent::__construct();
5756
$this->adminImsConfig = $adminImsConfig;
58-
$this->adminImsConnection = $adminImsConnection;
57+
$this->authorization = $authorization;
5958

6059
$this->setName('admin:adobe-ims:info')
6160
->setDescription('Information of Adobe IMS Module configuration');
@@ -69,7 +68,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int
6968
try {
7069
if ($this->adminImsConfig->enabled()) {
7170
$clientId = $this->adminImsConfig->getApiKey();
72-
if ($this->adminImsConnection->testAuth($clientId)) {
71+
if ($this->authorization->testAuth($clientId)) {
7372
$clientSecret = $this->adminImsConfig->getPrivateKey() ? 'configured' : 'not configured';
7473
$output->writeln(self::CLIENT_ID_NAME . ': ' . $clientId);
7574
$output->writeln(self::ORGANIZATION_ID_NAME . ': ' . $this->adminImsConfig->getOrganizationId());

app/code/Magento/AdminAdobeIms/Console/Command/AdminAdobeImsStatusCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\AdminAdobeIms\Console\Command;

0 commit comments

Comments
 (0)