You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 line
2.8 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <preference for="Magento\MediaGallerySynchronizationApi\Api\SynchronizeInterface" type="Magento\MediaGallerySynchronization\Model\Synchronize"/>
  10. <preference for="Magento\MediaGallerySynchronizationApi\Model\FetchBatchesInterface" type="Magento\MediaGallerySynchronization\Model\FetchBatches"/>
  11. <preference for="Magento\MediaGallerySynchronizationApi\Api\SynchronizeFilesInterface" type="Magento\MediaGallerySynchronization\Model\SynchronizeFiles"/>
  12. <preference for="Magento\MediaGallerySynchronizationApi\Model\CreateAssetFromFileInterface" type="Magento\MediaGallerySynchronization\Model\CreateAssetFromFile"/>
  13. <type name="Magento\MediaGallerySynchronizationApi\Model\ImportFilesComposite">
  14. <arguments>
  15. <argument name="importers" xsi:type="array">
  16. <item name="10" xsi:type="object">Magento\MediaGallerySynchronization\Model\ImportMediaAsset</item>
  17. </argument>
  18. </arguments>
  19. </type>
  20. <type name="Magento\MediaGallerySynchronizationApi\Model\SynchronizerPool">
  21. <arguments>
  22. <argument name="synchronizers" xsi:type="array">
  23. <item name="media_gallery_asset_synchronizer" xsi:type="object">Magento\MediaGallerySynchronization\Model\SynchronizeFiles</item>
  24. </argument>
  25. </arguments>
  26. </type>
  27. <type name="Magento\MediaGallerySynchronization\Model\FetchMediaStorageFileBatches">
  28. <arguments>
  29. <argument name="batchSize" xsi:type="number">100</argument>
  30. <argument name="fileExtensions" xsi:type="array">
  31. <item name="jpg" xsi:type="string">jpg</item>
  32. <item name="jpeg" xsi:type="string">jpeg</item>
  33. <item name="gif" xsi:type="string">gif</item>
  34. <item name="png" xsi:type="string">png</item>
  35. </argument>
  36. </arguments>
  37. </type>
  38. <type name="Magento\MediaGallerySynchronization\Model\FetchBatches">
  39. <arguments>
  40. <argument name="pageSize" xsi:type="number">100</argument>
  41. </arguments>
  42. </type>
  43. <type name="Magento\Framework\Console\CommandListInterface">
  44. <arguments>
  45. <argument name="commands" xsi:type="array">
  46. <item name="mediaGallerySynchronization" xsi:type="object">Magento\MediaGallerySynchronization\Console\Command\Synchronize</item>
  47. </argument>
  48. </arguments>
  49. </type>
  50. <type name="Magento\Framework\App\Config\Value">
  51. <plugin name="admin_system_config_adobe_stock_save_plugin" type="Magento\MediaGallerySynchronization\Plugin\MediaGallerySyncTrigger"/>
  52. </type>
  53. </config>