![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/code/Cnc/PdfCustomiser/Setup/Patch/Data/ |
<?php /** * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @author Ćukasz Wojciechowski <[email protected]> * @copyright Copyright (c) 2021 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) */ declare(strict_types=1); namespace Cnc\PdfCustomiser\Setup\Patch\Data; use Magento\Framework\App\Config\ConfigResource\ConfigInterface; use Magento\Framework\Setup\Patch\DataPatchInterface; class DefaultsV3 implements DataPatchInterface { private $configValues = [ // phpcs:ignore Generic.Files.LineLength.TooLong 'sales_pdf/invoice/columns' => '{"_1438325767477_477":{"columntype":"sku","title":"","width":"","align":""},"_1438324813122_122":{"columntype":"name","title":"","width":"","align":""},"_1438325761673_673":{"columntype":"price","title":"","width":"","align":""},"_1438325771278_278":{"columntype":"qty","title":"","width":"","align":""},"_1631875532069_69":{"columntype":"subtotalExcl","title":"","width":"","align":""},"_1631875550773_773":{"columntype":"product\/cnc_guarantee_type","title":"","width":"","align":""},"_1631875587130_130":{"columntype":"product\/cnc_guarantee_duration","title":"","width":"","align":""},"_1631875600558_558":{"columntype":"product\/cnc_customs_code","title":"","width":"","align":""},"_1631876328284_284":{"columntype":"product\/cnc_manufacturer","title":"","width":"","align":""}}', ]; /** * @var ConfigInterface */ private $config; public function __construct(ConfigInterface $config) { $this->config = $config; } public static function getDependencies(): array { return [DefaultsV2::class]; } public function getAliases(): array { return []; } public function apply() { foreach ($this->configValues as $key => $value) { $this->config->saveConfig($key, $value); } } }