6 declare(strict_types=1);
9 use Magento\Catalog\Setup\CategorySetupFactory;
25 private $moduleDataSetup;
30 private $categorySetupFactory;
39 CategorySetupFactory $categorySetupFactory
41 $this->moduleDataSetup = $moduleDataSetup;
42 $this->categorySetupFactory = $categorySetupFactory;
50 $categorySetup = $this->categorySetupFactory->create([
'setup' => $this->moduleDataSetup]);
54 $this->moduleDataSetup->getConnection()->update(
55 $this->moduleDataSetup->getTable(
'catalog_eav_attribute'),
56 [
'is_html_allowed_on_front' => 0],
57 $this->moduleDataSetup->getConnection()->quoteInto(
'attribute_id = ?',
$attribute[
'attribute_id'])
67 ChangePriceAttributeDefaultScope::class,
__construct(ModuleDataSetupInterface $moduleDataSetup, CategorySetupFactory $categorySetupFactory)