10 use Magento\Customer\Setup\CustomerSetupFactory;
25 private $moduleDataSetup;
30 private $customerSetupFactory;
39 CustomerSetupFactory $customerSetupFactory
41 $this->moduleDataSetup = $moduleDataSetup;
42 $this->customerSetupFactory = $customerSetupFactory;
50 $customerSetup = $this->customerSetupFactory->create([
'setup' => $this->moduleDataSetup]);
51 $customerSetup->addAttribute(
56 'label' =>
'Failures Number',
65 $customerSetup->addAttribute(
70 'label' =>
'First Failure Date',
79 $customerSetup->addAttribute(
84 'label' =>
'Failures Number',
92 $configTable = $this->moduleDataSetup->getTable(
'core_config_data');
94 $this->moduleDataSetup->getConnection()->update(
107 RemoveCheckoutRegisterAndUpdateAttributes::class,
const XML_PATH_CUSTOMER_RESET_PASSWORD_LINK_EXPIRATION_PERIOD
__construct(ModuleDataSetupInterface $moduleDataSetup, CustomerSetupFactory $customerSetupFactory)