chore: Move interfaces into Domain

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2023-11-26 13:09:47 +01:00
parent c0e876bd42
commit 05af371010
340 changed files with 1813 additions and 1421 deletions

View File

@@ -26,7 +26,6 @@ namespace SP\Domain\Config\Services;
use Defuse\Crypto\Exception\EnvironmentIsBrokenException;
use Exception;
use SP\Core\Context\ContextInterface;
use SP\Core\Exceptions\ConfigException;
use SP\Core\Exceptions\SPException;
use SP\Domain\Config\Adapters\ConfigData;
@@ -34,6 +33,7 @@ use SP\Domain\Config\Ports\ConfigBackupServiceInterface;
use SP\Domain\Config\Ports\ConfigDataInterface;
use SP\Domain\Config\Ports\ConfigInterface;
use SP\Domain\Core\AppInfoInterface;
use SP\Domain\Core\Context\ContextInterface;
use SP\Infrastructure\File\FileCacheInterface;
use SP\Infrastructure\File\FileException;
use SP\Infrastructure\File\XmlFileStorageInterface;
@@ -173,11 +173,11 @@ class ConfigFileService implements ConfigInterface
/**
* Guardar la configuración
*
* @param \SP\Domain\Config\Ports\ConfigDataInterface $configData
* @param ConfigDataInterface $configData
* @param bool|null $backup
*
* @return ConfigInterface
* @throws \SP\Infrastructure\File\FileException
* @throws FileException
*/
public function saveConfig(ConfigDataInterface $configData, ?bool $backup = true): ConfigInterface
{
@@ -251,7 +251,7 @@ class ConfigFileService implements ConfigInterface
/**
* Returns a clone of the configuration data
*
* @return \SP\Domain\Config\Ports\ConfigDataInterface
* @return ConfigDataInterface
*/
public function getConfigData(): ConfigDataInterface
{