File tree 7 files changed +13
-5
lines changed
MediaContentSynchronization
MediaContentSynchronizationApi
MediaGallerySynchronization/Model
7 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public function __construct(
50
50
51
51
/**
52
52
* Run media files synchronization.
53
+ *
53
54
* @param OperationInterface $operation
54
55
* @throws LocalizedException
55
56
*/
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ public function __construct(
62
62
}
63
63
64
64
/**
65
- * Publish media content synchronization message to the message queue.
65
+ * Publish media content synchronization message to the message queue
66
+ *
66
67
* @param array $contentIdentities
67
68
*/
68
69
public function execute (array $ contentIdentities = []) : void
Original file line number Diff line number Diff line change @@ -86,7 +86,9 @@ public function execute(array $mediaContentIdentities): void
86
86
if ($ identity [self ::MEDIA_CONTENT_TYPE ] === self ::FIELD_CMS_PAGE
87
87
|| $ identity [self ::MEDIA_CONTENT_TYPE ] === self ::FIELD_CMS_BLOCK
88
88
) {
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
+ );
90
92
} else {
91
93
$ content = implode (PHP_EOL , $ this ->getEntityContents ->execute ($ contentIdentity ));
92
94
}
Original file line number Diff line number Diff line change 6
6
"magento/framework" : " *" ,
7
7
"magento/module-media-content-synchronization-api" : " *" ,
8
8
"magento/framework-message-queue" : " *" ,
9
- "magento/module-media-content-api" : " *"
9
+ "magento/module-media-content-api" : " *" ,
10
+ "magento/module-asynchronous-operations" : " *"
10
11
},
11
12
"suggest" : {
12
13
"magento/module-media-gallery-synchronization" : " *"
Original file line number Diff line number Diff line change 3
3
"description" : " Magento module responsible for the media content synchronization implementation API" ,
4
4
"require" : {
5
5
"php" : " ~7.3.0||~7.4.0" ,
6
- "magento/framework" : " *"
6
+ "magento/framework" : " *" ,
7
+ "magento/module-media-content-api" : " *"
7
8
},
8
9
"type" : " magento2-module" ,
9
10
"license" : [
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public function __construct(
40
40
41
41
/**
42
42
* Run media files synchronization.
43
+ *
43
44
* @param array $paths
44
45
* @throws LocalizedException
45
46
*/
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ public function __construct(PublisherInterface $publisher)
33
33
}
34
34
35
35
/**
36
- * Publish media content synchronization message to the message queue.
36
+ * Publish media content synchronization message to the message queue
37
+ *
37
38
* @param array $paths
38
39
*/
39
40
public function execute (array $ paths = []) : void
You can’t perform that action at this time.
0 commit comments