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

@@ -36,9 +36,10 @@ use SP\Core\Exceptions\SPException;
use SP\DataModel\ItemSearchData;
use SP\DataModel\UserData;
use SP\DataModel\UserPreferencesData;
use SP\Repositories\DuplicatedItemException;
use SP\Repositories\User\UserRepository;
use SP\Services\User\UpdatePassRequest;
use SP\Domain\User\In\UserRepositoryInterface;
use SP\Domain\User\Services\UpdatePassRequest;
use SP\Infrastructure\Common\Repositories\DuplicatedItemException;
use SP\Infrastructure\User\Repositories\UserRepository;
use SP\Tests\DatabaseTestCase;
use stdClass;
use function SP\Tests\setupContext;
@@ -54,7 +55,7 @@ class UserRepositoryTest extends DatabaseTestCase
{
/**
* @var UserRepository
* @var UserRepositoryInterface
*/
private static $repository;