From a02c90464e2f2944ba624fba657d1848b12684d3 Mon Sep 17 00:00:00 2001 From: "@ChristelLoftus" <christel@bob.co.za> Date: Thu, 15 Aug 2024 13:19:48 +0200 Subject: [PATCH] cleanup --- Setup/InstallData.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 Setup/InstallData.php diff --git a/Setup/InstallData.php b/Setup/InstallData.php deleted file mode 100644 index a8db474..0000000 --- a/Setup/InstallData.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -namespace BobGroup\BobGo\Setup; - -use Magento\Framework\Setup\InstallDataInterface; -use Magento\Framework\Setup\ModuleContextInterface; -use Magento\Framework\Setup\ModuleDataSetupInterface; -use Magento\Eav\Setup\EavSetupFactory; - -class InstallData implements InstallDataInterface -{ - private $eavSetupFactory; - - public function __construct(EavSetupFactory $eavSetupFactory) - { - $this->eavSetupFactory = $eavSetupFactory; - } - - public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) - { - $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); - - $eavSetup->addAttribute( - \Magento\Sales\Model\Order::ENTITY, - 'weight_unit', - [ - 'type' => 'varchar', - 'length' => 255, - 'nullable' => true, - 'comment' => 'Weight Unit', - ] - ); - } -} -- GitLab