chore: Move interfaces into Domain

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2023-11-26 13:09:47 +01:00
parent c0e876bd42
commit 05af371010
340 changed files with 1813 additions and 1421 deletions

View File

@@ -26,14 +26,15 @@ namespace SP\Modules\Web\Controllers\Account;
use Exception;
use JsonException;
use SP\Core\Acl\Acl;
use SP\Core\Acl\AclActionsInterface;
use SP\Core\Application;
use SP\Core\Bootstrap\BootstrapBase;
use SP\Core\Events\Event;
use SP\Core\Events\EventMessage;
use SP\Core\Exceptions\ValidationException;
use SP\Domain\Account\Ports\AccountServiceInterface;
use SP\Domain\Core\Acl\AclActionsInterface;
use SP\Domain\User\Ports\UserServiceInterface;
use SP\Http\JsonResponse;
use SP\Http\Uri;
@@ -46,16 +47,17 @@ use SP\Mvc\Controller\WebControllerHelper;
*/
final class SaveRequestController extends AccountControllerBase
{
use JsonTrait, ItemTrait;
use ItemTrait;
use JsonTrait;
private AccountServiceInterface $accountService;
private UserServiceInterface $userService;
public function __construct(
Application $application,
WebControllerHelper $webControllerHelper,
\SP\Domain\Account\Ports\AccountServiceInterface $accountService,
UserServiceInterface $userService
Application $application,
WebControllerHelper $webControllerHelper,
AccountServiceInterface $accountService,
UserServiceInterface $userService
) {
parent::__construct(
$application,
@@ -72,7 +74,7 @@ final class SaveRequestController extends AccountControllerBase
* @param int $id Account's ID
*
* @return bool
* @throws \JsonException
* @throws JsonException
*/
public function saveRequestAction(int $id): bool
{