first commit

This commit is contained in:
Your Name
2026-01-19 14:19:22 +08:00
commit fe2d9c1868
4777 changed files with 665503 additions and 0 deletions

View File

@@ -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();
}
}