refactor: [WIP] Use hexagonal architecture and implement interfaces for services and repositories.

Controllers are being splited into commands to better dependency management.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-06-06 08:17:34 +02:00
parent a6e34f7b25
commit 1c8fb0ea1a
629 changed files with 18541 additions and 9626 deletions

View File

@@ -24,10 +24,10 @@
namespace SP\Core;
use SP\Config\Config;
use SP\Config\ConfigDataInterface;
use SP\Core\Context\ContextInterface;
use SP\Core\Events\EventDispatcher;
use SP\Domain\Config\In\ConfigDataInterface;
use SP\Domain\Config\Services\ConfigFileService;
/**
* Class ModuleBase
@@ -36,7 +36,7 @@ use SP\Core\Events\EventDispatcher;
*/
abstract class ModuleBase
{
protected Config $config;
protected ConfigFileService $config;
protected ConfigDataInterface $configData;
protected ContextInterface $context;
private EventDispatcher $eventDispatcher;