- Data patch for the customer EAV attribute -
- - - \ No newline at end of file diff --git a/resources/fileTemplates/internal/Magento Eav Attribute Data Patch Class.php.ft b/resources/fileTemplates/internal/Magento Eav Attribute Data Patch Class.php.ft deleted file mode 100644 index 7c6813869..000000000 --- a/resources/fileTemplates/internal/Magento Eav Attribute Data Patch Class.php.ft +++ /dev/null @@ -1,87 +0,0 @@ -moduleDataSetup = $moduleDataSetup; - $this->eavSetupFactory = $eavSetupFactory; - } - - /** - * Run code inside patch - * If code fails, patch must be reverted, in case when we are speaking about schema - then under revert - * means run PatchInterface::revert() - * - * If we speak about data, under revert means: $transaction->rollback() - */ - public function apply() - { - /** @var ${EAV_SETUP} $eavSetup */ - $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]); - - $eavSetup->addAttribute( - ${ENTITY_CLASS}::ENTITY, - '${ATTRIBUTE_CODE}', - [ - #set ($attributeSet = ${ATTRIBUTE_SET}) - #foreach ($attribute in $attributeSet.split("->")) - $attribute - #end -] - ); - } - - /** - * Get array of patches that have to be executed prior to this. - * - * Example of implementation: - * - * [ - * \Vendor_Name\Module_Name\Setup\Patch\Patch1::class, - * \Vendor_Name\Module_Name\Setup\Patch\Patch2::class - * ] - * - * @return string[] - */ - public static function getDependencies() - { - return []; - } - - /** - * Get aliases (previous names) for the patch. - * - * @return string[] - */ - public function getAliases() - { - return []; - } -} diff --git a/resources/fileTemplates/internal/Magento Source Model Class.php.ft b/resources/fileTemplates/internal/Magento Source Model Class.php.ft deleted file mode 100644 index 108281c0e..000000000 --- a/resources/fileTemplates/internal/Magento Source Model Class.php.ft +++ /dev/null @@ -1,22 +0,0 @@ - options; - private Map