File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
app/code/Magento/MediaContent Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
declare (strict_types=1 );
7
7
8
- namespace Magento \MediaContent \Model \ Plugin ;
8
+ namespace Magento \MediaContent \Plugin ;
9
9
10
10
use Magento \Framework \App \ResourceConnection ;
11
11
use Magento \Framework \DB \Adapter \AdapterInterface ;
@@ -67,7 +67,7 @@ public function aroundExecute(
67
67
) : void {
68
68
$ assetIds = $ this ->getAssetIdsByDirectoryPath ($ directoryPath );
69
69
70
- $ proceed ();
70
+ $ proceed ($ directoryPath );
71
71
72
72
$ this ->removeRelationsForAssetIds ->execute ($ assetIds );
73
73
}
Original file line number Diff line number Diff line change 5
5
*/
6
6
declare (strict_types=1 );
7
7
8
- namespace Magento \MediaContent \Model \ Plugin ;
8
+ namespace Magento \MediaContent \Plugin ;
9
9
10
10
use Magento \Framework \Exception \CouldNotDeleteException ;
11
11
use Magento \MediaContent \Model \RemoveRelationsForAssetIds ;
@@ -64,7 +64,7 @@ public function aroundExecute(
64
64
) : void {
65
65
$ asset = $ this ->getByPath ->execute ($ mediaAssetPath );
66
66
67
- $ proceed ();
67
+ $ proceed ($ mediaAssetPath );
68
68
69
69
$ this ->removeRelationsForAssetIds ->execute ([$ asset ->getId ()]);
70
70
}
Original file line number Diff line number Diff line change 14
14
<preference for =" Magento\MediaContentApi\Api\UpdateRelationsInterface" type =" Magento\MediaContent\Model\UpdateRelations" />
15
15
<preference for =" Magento\MediaContentApi\Api\Data\ContentIdentityInterface" type =" Magento\MediaContent\Model\ContentIdentity" />
16
16
<type name =" Magento\MediaGalleryApi\Model\Asset\Command\DeleteByPathInterface" >
17
- <plugin name =" remove_media_content_after_asset_is_removed_by_path" type =" Magento\MediaContent\Model\Plugin\ MediaGalleryAssetDeleteByPath" />
17
+ <plugin name =" remove_media_content_after_asset_is_removed_by_path" type =" Magento\MediaContent\Model\MediaGalleryAssetDeleteByPath" />
18
18
</type >
19
19
<type name =" Magento\MediaGalleryApi\Model\Asset\Command\DeleteByDirectoryPathInterface" >
20
- <plugin name =" remove_media_content_after_asset_is_removed_by_directory_path" type =" Magento\MediaContent\Model\ Plugin\MediaGalleryAssetDeleteByDirectoryPath" />
20
+ <plugin name =" remove_media_content_after_asset_is_removed_by_directory_path" type =" Magento\MediaContent\Plugin\MediaGalleryAssetDeleteByDirectoryPath" />
21
21
</type >
22
22
<virtualType name =" Magento\MediaContent\Model\Content\Config\Reader" type =" Magento\Framework\Config\Reader\Filesystem" >
23
23
<arguments >
You can’t perform that action at this time.
0 commit comments