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

@@ -32,7 +32,8 @@ use SP\Core\Exceptions\QueryException;
use SP\Core\Messages\NotificationMessage;
use SP\DataModel\ItemSearchData;
use SP\DataModel\NotificationData;
use SP\Repositories\Notification\NotificationRepository;
use SP\Domain\Notification\In\NotificationRepositoryInterface;
use SP\Infrastructure\Notification\Repositories\NotificationRepository;
use SP\Tests\DatabaseTestCase;
use function SP\Tests\setupContext;
@@ -44,7 +45,7 @@ use function SP\Tests\setupContext;
class NotificationRepositoryTest extends DatabaseTestCase
{
/**
* @var NotificationRepository
* @var NotificationRepositoryInterface
*/
private static $repository;