InstallData.php 970 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Copyright © 2018 Porto. All rights reserved.
  4. */
  5. namespace Smartwave\Porto\Setup;
  6. use Magento\Eav\Setup\EavSetup;
  7. use Magento\Eav\Setup\EavSetupFactory;
  8. use Magento\Framework\Setup\InstallDataInterface;
  9. use Magento\Framework\Setup\ModuleContextInterface;
  10. use Magento\Framework\Setup\ModuleDataSetupInterface;
  11. /**
  12. * @codeCoverageIgnore
  13. */
  14. class InstallData implements InstallDataInterface {
  15. /**
  16. * EAV setup factory
  17. *
  18. * @var EavSetupFactory
  19. */
  20. private $eavSetupFactory;
  21. /**
  22. * Init
  23. *
  24. * @param EavSetupFactory $eavSetupFactory
  25. */
  26. public function __construct(EavSetupFactory $eavSetupFactory) {
  27. $this->eavSetupFactory = $eavSetupFactory;
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) {
  33. $installer = $setup;
  34. $installer->startSetup();
  35. $installer->endSetup();
  36. }
  37. }