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

@@ -33,8 +33,9 @@ use SP\Core\Exceptions\SPException;
use SP\DataModel\ItemSearchData;
use SP\DataModel\ProfileData;
use SP\DataModel\UserProfileData;
use SP\Repositories\DuplicatedItemException;
use SP\Repositories\UserProfile\UserProfileRepository;
use SP\Domain\User\In\UserProfileRepositoryInterface;
use SP\Infrastructure\Common\Repositories\DuplicatedItemException;
use SP\Infrastructure\User\Repositories\UserProfileRepository;
use SP\Tests\DatabaseTestCase;
use stdClass;
use function SP\Tests\setupContext;
@@ -49,7 +50,7 @@ use function SP\Tests\setupContext;
class UserProfileRepositoryTest extends DatabaseTestCase
{
/**
* @var UserProfileRepository
* @var UserProfileRepositoryInterface
*/
private static $repository;