b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / app / Firebear / ImportExport / Setup / Patch / Data /
Filename/home/dev2.destoffenstraat.com/app/Firebear/ImportExport/Setup/Patch/Data/InstallPatch.php
Size2.18 kb
Permissionrw-rw-r--
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified07-Nov-2022 06:44
Last accessed22-Aug-2025 20:55
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
declare(strict_types=1);

namespace Firebear\ImportExport\Setup\Patch\Data;

use Firebear\ImportExport\Setup\Operations\CreateCmsEntityTypes;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Firebear\ImportExport\Setup\Operations\EncryptPasswordFields;
use Firebear\ImportExport\Setup\Operations\UpdateFilePathWithPrefix;

/**
* Class InstallPatch
* @package Firebear\ImportExport\Setup\Patch\Data
*/
class InstallPatch implements DataPatchInterface
{
/**
* @var ModuleDataSetupInterface $moduleDataSetup
*/
private $moduleDataSetup;
/**
* @var CreateCmsEntityTypes
*/
private $createCmsEntityTypes;
/**
* @var EncryptPasswordFields
*/
private $encryptPasswordFields;
/**
* @var UpdateFilePathWithPrefix
*/
private $updateFilePathWithPrefix;

/**
* @param ModuleDataSetupInterface $moduleDataSetup
* @param CreateCmsEntityTypes $createCmsEntityTypes
* @param EncryptPasswordFields $encryptPasswordFields
* @param UpdateFilePathWithPrefix $updateFilePathWithPrefix
*/
public function __construct(
ModuleDataSetupInterface $moduleDataSetup,
CreateCmsEntityTypes $createCmsEntityTypes,
EncryptPasswordFields $encryptPasswordFields,
UpdateFilePathWithPrefix $updateFilePathWithPrefix
) {
$this->moduleDataSetup = $moduleDataSetup;
$this->createCmsEntityTypes = $createCmsEntityTypes;
$this->encryptPasswordFields = $encryptPasswordFields;
$this->updateFilePathWithPrefix = $updateFilePathWithPrefix;
}

/**
* @return InstallPatch|void
* @throws \Magento\Framework\DB\FieldDataConversionException
*/
public function apply()
{
$this->createCmsEntityTypes->execute($this->moduleDataSetup);
$this->encryptPasswordFields->execute($this->moduleDataSetup);
$this->updateFilePathWithPrefix->execute($this->moduleDataSetup);
}

/**
* @inheritdoc
*/
public function getAliases()
{
return [];
}

/**
* @inheritdoc
*/
public static function getDependencies()
{
return [];
}
}