Spamworldpro Mini Shell
Spamworldpro


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/framework/Setup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/wyomind/framework/Setup/Recurring.php
<?php

/**
 * Copyright © 2020 Wyomind. All rights reserved.
 * See LICENSE.txt for license details.
 */

namespace Wyomind\Framework\Setup;

use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Symfony\Component\Console\Output\ConsoleOutput;
use Wyomind\Framework\Helper\Install;
use Wyomind\Framework\Helper\Module;

/**
 * Class Recurring
 * @package Wyomind\Framework\Setup
 */
class Recurring implements InstallSchemaInterface
{
    /**
     * @var Module
     */
    protected $module;
    /**
     * @var OutputInterface
     */
    protected $output;


    /**
     * @var null|Module
     */
    private $framework = null;

    /**
     * Recurring constructor.
     * @param Install $framework
     * @param Module $module
     * @param ConsoleOutput $output
     */
    public function __construct(
        Install $framework,
        Module $module,
        ConsoleOutput $output
    ) {
    
        $this->framework = $framework;
        $this->module = $module;
        $this->output = $output;
    }

    /**
     * {@inheritdoc}
     */
    public function install(
        SchemaSetupInterface $setup,
        ModuleContextInterface $context
    ) {
    
        $files = [
            "Magento/Ui/TemplateEngine/Xhtml/Result.php"
        ];
        $this->framework->copyFilesByMagentoVersion(__FILE__, $files);
        if ($context->getVersion() != null) {
            $this->module->updateConfigPubFolderEnabled($this->output);
        }
    }
}

Spamworldpro Mini