mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-07 08:56:59 +01:00
chore: Move interfaces into Domain
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user