mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-10 10:26:58 +01:00
chore: Move interfaces into Domain
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user