![]() 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/vendor/wyomind/msicustomattributes/Setup/ |
<?php /** * Copyright © 2022 Wyomind. All rights reserved. * See LICENSE.txt for license details. */ namespace Wyomind\MsiCustomAttributes\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Wyomind\Framework\Helper\Install; use Wyomind\Framework\Helper\License\UpdateFactory; class Recurring implements InstallSchemaInterface { protected $license; private $framework; public function __construct( Install $framework, UpdateFactory $license ) { $this->framework = $framework; $this->license = $license; } /** * {@inheritdoc} */ public function install( SchemaSetupInterface $setup, ModuleContextInterface $context ) { $files = []; $this->framework->copyFilesByMagentoVersion(__FILE__, $files); if ($context->getVersion() != null) { $this->license->create()->update(__CLASS__, $context); } } }