Skip to content

Instantly share code, notes, and snippets.

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