eavSetupFactory = $eavSetupFactory; } public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $categorySetup = $objectManager->create('saws\sawsconnector\Setup\CategorySetup'); $categorySetup->installAttributes($eavSetup); $setup->endSetup(); } }