10 use Magento\Customer\Setup\CustomerSetupFactory;
36 private $moduleDataSetup;
41 private $customerSetupFactory;
50 CustomerSetupFactory $customerSetupFactory
52 $this->moduleDataSetup = $moduleDataSetup;
53 $this->customerSetupFactory = $customerSetupFactory;
61 $this->moduleDataSetup->getConnection()->delete(
62 $this->moduleDataSetup->getTable(
'customer_form_attribute'),
63 [
'form_code = ?' =>
'checkout_register']
65 $customerSetup = $this->customerSetupFactory->create([
'setup' => $this->moduleDataSetup]);
66 $customerSetup->updateEntityType(
71 $customerSetup->updateEntityType(
74 \
Magento\Eav\Model\Entity\Increment\NumericValue::class
76 $customerSetup->updateEntityType(
78 'entity_attribute_collection',
81 $customerSetup->updateEntityType(
86 $customerSetup->updateEntityType(
88 'entity_attribute_collection',
91 $customerSetup->updateAttribute(
97 $customerSetup->updateAttribute(
103 $customerSetup->updateAttribute(
117 UpgradePasswordHashAndAddress::class,
__construct(ModuleDataSetupInterface $moduleDataSetup, CustomerSetupFactory $customerSetupFactory)