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

@@ -32,8 +32,8 @@ use SP\Core\Exceptions\ConstraintException;
use SP\Core\Exceptions\QueryException;
use SP\Core\Exceptions\SPException;
use SP\DataModel\ClientData;
use SP\Domain\Client\ClientServiceInterface;
use SP\Domain\CustomField\CustomFieldServiceInterface;
use SP\Domain\Client\Ports\ClientServiceInterface;
use SP\Domain\CustomField\Ports\CustomFieldServiceInterface;
use SP\Infrastructure\Common\Repositories\NoSuchItemException;
use SP\Modules\Web\Controllers\ControllerBase;
use SP\Mvc\Controller\ItemTrait;
@@ -46,8 +46,8 @@ abstract class ClientViewBase extends ControllerBase
{
use ItemTrait;
private ClientServiceInterface $clientService;
private CustomFieldServiceInterface $customFieldService;
private \SP\Domain\Client\Ports\ClientServiceInterface $clientService;
private CustomFieldServiceInterface $customFieldService;
public function __construct(
Application $application,
@@ -106,4 +106,4 @@ abstract class ClientViewBase extends ControllerBase
$this->getCustomFieldsForItem(ActionsInterface::CLIENT, $clientId, $this->customFieldService)
);
}
}
}