Skip to content

Commit

Permalink
0.0.3: #12
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 2, 2019
1 parent 3f4f93e commit 1ebecf6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Plugin/Framework/File/Uploader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
namespace ShiftSST\Core\Plugin\Framework\File;
use Magento\Framework\File\Uploader as Sb;
// 2019-10-03
// "Transfer the `Magento\Framework\File\Uploader::checkMimeType()` method modification to a plugin":
// https://github.com/shiftsst/core/issues/12
final class Uploader {
/**
* 2019-10-03
* @see \Magento\Framework\File\Uploader::checkMimeType()
* @return bool
*/
function aroundCheckMimeType() {return true;}
}
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.2"
,"version": "0.0.3"
,"description": "A custom module for shiftsst.com (Magento 2)"
,"type": "magento2-module"
,"homepage": "https://github.com/shiftsst/core"
Expand Down
9 changes: 9 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='urn:magento:framework:ObjectManager/etc/config.xsd'
>
<!-- 2019-10-03
"Transfer the `Magento\Framework\File\Uploader::checkMimeType()` method modification to a plugin":
https://github.com/shiftsst/core/issues/12 -->
<type name='Magento\Framework\File\Uploader'>
<plugin
name='ShiftSST\Core\Plugin\Framework\File\Uploader'
type='ShiftSST\Core\Plugin\Framework\File\Uploader'
/>
</type>
<!-- 2019-10-02 "How to remove the «PayPal CREDIT» button in Magento ≥ 2.3.1?" https://mage2.pro/t/6030 -->
<type name='Magento\Paypal\Model\Config'>
<plugin name='ShiftSST\Core\Plugin\Paypal\Model\Config' type='ShiftSST\Core\Plugin\Paypal\Model\Config'/>
Expand Down

0 comments on commit 1ebecf6

Please sign in to comment.