Skip to content

Commit c1480f3

Browse files
committed
#27536: Updated plugins
1 parent 4b634ce commit c1480f3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/code/Magento/MediaContent/Model/Plugin/MediaGalleryAssetDeleteByDirectoryPath.php renamed to app/code/Magento/MediaContent/Plugin/MediaGalleryAssetDeleteByDirectoryPath.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\MediaContent\Model\Plugin;
8+
namespace Magento\MediaContent\Plugin;
99

1010
use Magento\Framework\App\ResourceConnection;
1111
use Magento\Framework\DB\Adapter\AdapterInterface;
@@ -67,7 +67,7 @@ public function aroundExecute(
6767
) : void {
6868
$assetIds = $this->getAssetIdsByDirectoryPath($directoryPath);
6969

70-
$proceed();
70+
$proceed($directoryPath);
7171

7272
$this->removeRelationsForAssetIds->execute($assetIds);
7373
}

app/code/Magento/MediaContent/Model/Plugin/MediaGalleryAssetDeleteByPath.php renamed to app/code/Magento/MediaContent/Plugin/MediaGalleryAssetDeleteByPath.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\MediaContent\Model\Plugin;
8+
namespace Magento\MediaContent\Plugin;
99

1010
use Magento\Framework\Exception\CouldNotDeleteException;
1111
use Magento\MediaContent\Model\RemoveRelationsForAssetIds;
@@ -64,7 +64,7 @@ public function aroundExecute(
6464
) : void {
6565
$asset = $this->getByPath->execute($mediaAssetPath);
6666

67-
$proceed();
67+
$proceed($mediaAssetPath);
6868

6969
$this->removeRelationsForAssetIds->execute([$asset->getId()]);
7070
}

app/code/Magento/MediaContent/etc/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
<preference for="Magento\MediaContentApi\Api\UpdateRelationsInterface" type="Magento\MediaContent\Model\UpdateRelations"/>
1515
<preference for="Magento\MediaContentApi\Api\Data\ContentIdentityInterface" type="Magento\MediaContent\Model\ContentIdentity"/>
1616
<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" />
1818
</type>
1919
<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" />
2121
</type>
2222
<virtualType name="Magento\MediaContent\Model\Content\Config\Reader" type="Magento\Framework\Config\Reader\Filesystem">
2323
<arguments>

0 commit comments

Comments
 (0)