Skip to content

Instantly share code, notes, and snippets.

@CajuCLC
Created September 20, 2021 09:52
Show Gist options
  • Save CajuCLC/74e5d08ac6b9980b32d80634987522ad to your computer and use it in GitHub Desktop.
Save CajuCLC/74e5d08ac6b9980b32d80634987522ad to your computer and use it in GitHub Desktop.
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogRuleSampleData\Setup;
use Magento\Framework\Setup;
class Installer implements Setup\SampleData\InstallerInterface
{
/**
* @var \Magento\CatalogRuleSampleData\Model\Rule
*/
protected $rule;
/**
* @param \Magento\CatalogRuleSampleData\Model\Rule $rule
*/
public function __construct(
\Magento\CatalogRuleSampleData\Model\Rule $rule
) {
$this->rule = $rule;
}
/**
* {@inheritdoc}
*/
public function install()
{
//$this->rule->install(['Magento_CatalogRuleSampleData::fixtures/catalog_rules.csv']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment