Skip to content

Commit d5276dd

Browse files
committed
magento/adobe-stock-integration#1724: Support batches processing for synchronization queue messages - fixed failed static test
1 parent 16dc1fa commit d5276dd

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

app/code/Magento/MediaContentSynchronization/Model/Consume.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function __construct(
5050

5151
/**
5252
* Run media files synchronization.
53+
*
5354
* @param OperationInterface $operation
5455
* @throws LocalizedException
5556
*/

app/code/Magento/MediaContentSynchronization/Model/Publish.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public function __construct(
6262
}
6363

6464
/**
65-
* Publish media content synchronization message to the message queue.
65+
* Publish media content synchronization message to the message queue
66+
*
6667
* @param array $contentIdentities
6768
*/
6869
public function execute(array $contentIdentities = []) : void

app/code/Magento/MediaContentSynchronization/Model/SynchronizeIdentities.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ public function execute(array $mediaContentIdentities): void
8686
if ($identity[self::MEDIA_CONTENT_TYPE] === self::FIELD_CMS_PAGE
8787
|| $identity[self::MEDIA_CONTENT_TYPE] === self::FIELD_CMS_BLOCK
8888
) {
89-
$content = $this->getCmsMediaContent($identity[self::MEDIA_CONTENT_TYPE], $identity[self::MEDIA_CONTENT_ENTITY_ID]);
89+
$content = $this->getCmsMediaContent(
90+
$identity[self::MEDIA_CONTENT_TYPE], $identity[self::MEDIA_CONTENT_ENTITY_ID]
91+
);
9092
} else {
9193
$content = implode(PHP_EOL, $this->getEntityContents->execute($contentIdentity));
9294
}

app/code/Magento/MediaContentSynchronization/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"magento/framework": "*",
77
"magento/module-media-content-synchronization-api": "*",
88
"magento/framework-message-queue": "*",
9-
"magento/module-media-content-api": "*"
9+
"magento/module-media-content-api": "*",
10+
"magento/module-asynchronous-operations": "*"
1011
},
1112
"suggest": {
1213
"magento/module-media-gallery-synchronization": "*"

app/code/Magento/MediaContentSynchronizationApi/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"description": "Magento module responsible for the media content synchronization implementation API",
44
"require": {
55
"php": "~7.3.0||~7.4.0",
6-
"magento/framework": "*"
6+
"magento/framework": "*",
7+
"magento/module-media-content-api": "*"
78
},
89
"type": "magento2-module",
910
"license": [

app/code/Magento/MediaGallerySynchronization/Model/Consume.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function __construct(
4040

4141
/**
4242
* Run media files synchronization.
43+
*
4344
* @param array $paths
4445
* @throws LocalizedException
4546
*/

app/code/Magento/MediaGallerySynchronization/Model/Publish.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public function __construct(PublisherInterface $publisher)
3333
}
3434

3535
/**
36-
* Publish media content synchronization message to the message queue.
36+
* Publish media content synchronization message to the message queue
37+
*
3738
* @param array $paths
3839
*/
3940
public function execute(array $paths = []) : void

0 commit comments

Comments
 (0)