Skip to content

Commit

Permalink
Merge pull request #102 from YotpoLtd/COR-2003-add-customer-attribute…
Browse files Browse the repository at this point in the history
…-if-deleted

COR-2003 add customer attribute if deleted
  • Loading branch information
LiorGingi authored Mar 30, 2022
2 parents 4d549cb + 9cda7af commit 8ee11ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Setup/Patch/Data/CustomCustomerAttributeSyncedToYotpo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

namespace Yotpo\SmsBump\Setup\Patch\Data;

use Yotpo\Core\Model\CustomCustomerAttributeSyncedToYotpo as CoreCustomCustomerAttributeSyncedToYotpo;
use Magento\Customer\Model\Customer;
use Magento\Customer\Setup\CustomerSetupFactory;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;
use Yotpo\SmsBump\Model\Config as MessagingConfig;

class CustomCustomerAttributeSyncedToYotpo implements DataPatchInterface
class CustomCustomerAttributeSyncedToYotpo extends CoreCustomCustomerAttributeSyncedToYotpo implements DataPatchInterface
{
const CUSTOMER_SETUP_FACTORY_SETUP_KEY = 'setup';

Expand Down
2 changes: 1 addition & 1 deletion etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<type name="Yotpo\Core\Model\System\Message\CustomSystemMessage">
<arguments>
<argument name="customCustomerAttributeSmsMarketing" xsi:type="object">Yotpo\SmsBump\Setup\Patch\Data\CustomCustomerAttributeSmsMarketing</argument>
<argument name="CustomCustomerAttributeSyncedToYotpo" xsi:type="object">Yotpo\SmsBump\Setup\Patch\Data\SyncedToYotpoCustomerAttribute</argument>
<argument name="customCustomerAttributeSyncedToYotpo" xsi:type="object">Yotpo\SmsBump\Setup\Patch\Data\CustomCustomerAttributeSyncedToYotpo</argument>
</arguments>
</type>
</config>

0 comments on commit 8ee11ee

Please sign in to comment.