Skip to content

Commit

Permalink
0.0.6: #15
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 2, 2019
1 parent 959de8d commit 42ce2a7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shiftsst/core"
,"version": "0.0.5"
,"version": "0.0.6"
,"description": "A custom module for shiftsst.com (Magento 2)"
,"type": "magento2-module"
,"homepage": "https://github.com/shiftsst/core"
Expand Down
16 changes: 16 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='urn:magento:framework:ObjectManager/etc/config.xsd'
>
<!-- 2019-10-03
"Transfer the `Magento\Catalog\Controller\Adminhtml\Product\Gallery\Upload::execute()` method modification to a plugin":
https://github.com/shiftsst/core/issues/14 -->
<type name='Magento\Catalog\Controller\Adminhtml\Product\Gallery\Upload'>
<plugin
name='ShiftSST\Core\Plugin\Catalog\Controller\Adminhtml\Product\Gallery\Upload'
Expand Down Expand Up @@ -31,4 +34,17 @@ method modification to a plugin": https://github.com/shiftsst/core/issues/13 -->
<type name='Magento\Paypal\Model\Config'>
<plugin name='ShiftSST\Core\Plugin\Paypal\Model\Config' type='ShiftSST\Core\Plugin\Paypal\Model\Config'/>
</type>
<!-- 2019-10-03
"Transfer the `vendor/magento/module-catalog/etc/di.xml` file modification to a plugin":
https://github.com/shiftsst/core/issues/15 -->
<virtualType name='Magento\Catalog\CategoryImageUpload'>
<arguments>
<argument name='allowedExtensions' xsi:type='array'>
<item name='pdf' xsi:type='string'>pdf</item>
</argument>
<argument name='allowedMimeTypes' xsi:type='array'>
<item name='pdf' xsi:type='string'>pdf</item>
</argument>
</arguments>
</virtualType>
</config>
2 changes: 2 additions & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
>
<module name='ShiftSST_Core' setup_version='0.0.1'>
<sequence>
<module name='Magento_Catalog'/>
<module name='Magento_Framework'/>
<module name='Magento_Paypal'/>
</sequence>
</module>
Expand Down

0 comments on commit 42ce2a7

Please sign in to comment.