chore: Adapt to hexagonal architecture pattern.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-26 19:45:53 +01:00
parent ae16c0ad76
commit 5952a3f48a
518 changed files with 2821 additions and 1768 deletions

View File

@@ -28,9 +28,9 @@ namespace SP\Modules\Api\Controllers\Client;
use Klein\Klein;
use SP\Core\Acl\Acl;
use SP\Core\Application;
use SP\Domain\Api\ApiServiceInterface;
use SP\Domain\Client\ClientServiceInterface;
use SP\Domain\Client\Out\ClientAdapterInterface;
use SP\Domain\Api\Ports\ApiServiceInterface;
use SP\Domain\Client\Ports\ClientAdapterInterface;
use SP\Domain\Client\Ports\ClientServiceInterface;
use SP\Modules\Api\Controllers\ControllerBase;
use SP\Modules\Api\Controllers\Help\ClientHelp;
@@ -50,7 +50,7 @@ abstract class ClientBase extends ControllerBase
Klein $router,
ApiServiceInterface $apiService,
Acl $acl,
ClientServiceInterface $clientService,
\SP\Domain\Client\Ports\ClientServiceInterface $clientService,
ClientAdapterInterface $clientAdapter
) {
parent::__construct($application, $router, $apiService, $acl);
@@ -61,4 +61,4 @@ abstract class ClientBase extends ControllerBase
$this->apiService->setHelpClass(ClientHelp::class);
}
}
}