Skip to content

Commit

Permalink
add mobile phone #1847 for magento 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Nov 7, 2023
1 parent 8028060 commit edfc4ae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class UpgradeData implements UpgradeDataInterface
* @var AttributeSetFactory
*/
private $attributeSetFactory;
private $state;

/**
* @param ResourceConnection $resource
Expand All @@ -76,7 +75,6 @@ public function __construct(
\Ebizmarts\MailChimp\Model\ResourceModel\MailChimpInterestGroup\CollectionFactory $interestGroupCollectionFactory,
\Ebizmarts\MailChimp\Model\ResourceModel\MailChimpWebhookRequest\CollectionFactory $webhookCollectionFactory,
\Magento\Config\Model\ResourceModel\Config\Data\CollectionFactory $configFactory,
\Magento\Framework\App\State $state,
CustomerSetupFactory $customerSetupFactory,
AttributeSetFactory $attributeSetFactory,
\Ebizmarts\MailChimp\Helper\Data $helper
Expand All @@ -89,8 +87,6 @@ public function __construct(
$this->customerSetupFactory = $customerSetupFactory;
$this->attributeSetFactory = $attributeSetFactory;
$this->_helper = $helper;
$this->state = $state;
$this->state->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML);
}

/**
Expand All @@ -99,7 +95,6 @@ public function __construct(
*/
public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$this->state->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML);
if (version_compare($context->getVersion(), '1.0.24') < 0) {
$setup->startSetup();
$connection = $this->_resource->getConnectionByName('default');
Expand Down

0 comments on commit edfc4ae

Please sign in to comment.