init
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\TestSetupDeclarationModule3\Setup;
|
||||
|
||||
use Magento\Framework\Setup\InstallDataInterface;
|
||||
use Magento\Framework\Setup\ModuleContextInterface;
|
||||
use Magento\Framework\Setup\ModuleDataSetupInterface;
|
||||
|
||||
/**
|
||||
* Class InstallData
|
||||
* @package Magento\TestSetupDeclarationModule3\Setup
|
||||
*/
|
||||
class InstallData implements InstallDataInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
||||
*/
|
||||
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
|
||||
{
|
||||
$adapter = $setup->getConnection();
|
||||
$setup->startSetup();
|
||||
$adapter->insertArray('reference_table', ['some_integer'], [7, 2, 3, 5]);
|
||||
$setup->endSetup();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user