This commit is contained in:
Your Name
2026-03-01 14:17:59 +08:00
parent 65aa12f146
commit a07e844c47
6071 changed files with 777651 additions and 0 deletions
@@ -0,0 +1,28 @@
<?php
namespace clagiordano\weblibs\configmanager;
/**
* Class FileConverter
* @package clagiordano\weblibs\configmanager
*/
class FileConverter implements IConvertable
{
/**
* @inheritDoc
*/
public static function convert(IConfigurable $source, IConfigurable $target)
{
return $target->setConfig($source->getConfig());
}
/**
* @inheritDoc
*/
public static function convertAndSave(IConfigurable $source, IConfigurable $target)
{
$target->setConfig($source->getConfig());
return $target->saveConfigFile();
}
}