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

@@ -26,8 +26,8 @@ namespace SP\Modules\Web\Controllers\Client;
use SP\Core\Application;
use SP\Domain\Client\ClientServiceInterface;
use SP\Domain\CustomField\CustomFieldServiceInterface;
use SP\Domain\Client\Ports\ClientServiceInterface;
use SP\Domain\CustomField\Ports\CustomFieldServiceInterface;
use SP\Modules\Web\Controllers\ControllerBase;
use SP\Modules\Web\Forms\ClientForm;
use SP\Mvc\Controller\WebControllerHelper;
@@ -37,9 +37,9 @@ use SP\Mvc\Controller\WebControllerHelper;
*/
abstract class ClientSaveBase extends ControllerBase
{
protected ClientServiceInterface $clientService;
protected CustomFieldServiceInterface $customFieldService;
protected ClientForm $form;
protected \SP\Domain\Client\Ports\ClientServiceInterface $clientService;
protected CustomFieldServiceInterface $customFieldService;
protected ClientForm $form;
public function __construct(
Application $application,
@@ -55,4 +55,4 @@ abstract class ClientSaveBase extends ControllerBase
$this->customFieldService = $customFieldService;
$this->form = new ClientForm($application, $this->request);
}
}
}