| Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-media-gallery-renditions/etc/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/module-media-gallery-renditions/etc/di.xml |
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\MediaGalleryRenditionsApi\Api\GenerateRenditionsInterface" type="Magento\MediaGalleryRenditions\Model\GenerateRenditions"/>
<preference for="Magento\MediaGalleryRenditionsApi\Api\GetRenditionPathInterface" type="Magento\MediaGalleryRenditions\Model\GetRenditionPath"/>
<type name="Magento\Cms\Model\Wysiwyg\Images\GetInsertImageContent">
<plugin name="set_rendition_path" type="Magento\MediaGalleryRenditions\Plugin\SetRenditionPath"/>
</type>
<type name="Magento\MediaGalleryRenditions\Model\Queue\FetchRenditionPathsBatches">
<arguments>
<argument name="batchSize" xsi:type="number">100</argument>
<argument name="fileExtensions" xsi:type="array">
<item name="jpg" xsi:type="string">jpg</item>
<item name="jpeg" xsi:type="string">jpeg</item>
<item name="gif" xsi:type="string">gif</item>
<item name="png" xsi:type="string">png</item>
</argument>
</arguments>
</type>
<type name="Magento\Framework\App\Config\Value">
<plugin name="admin_system_config_media_gallery_renditions" type="Magento\MediaGalleryRenditions\Plugin\UpdateRenditionsOnConfigChange"/>
</type>
<type name="Magento\MediaGalleryApi\Api\DeleteAssetsByPathsInterface">
<plugin name="delete_renditions_on_assets_delete" type="Magento\MediaGalleryRenditions\Plugin\RemoveRenditions"/>
</type>
</config>