mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 15:44:07 +01:00
chore: Move interfaces into Domain
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -25,8 +25,12 @@
|
||||
namespace SP\Modules\Web\Controllers\User;
|
||||
|
||||
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use JsonException;
|
||||
use SP\Core\Application;
|
||||
use SP\Core\Exceptions\ConstraintException;
|
||||
use SP\Core\Exceptions\QueryException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\User\Ports\UserServiceInterface;
|
||||
use SP\Html\DataGrid\DataGridInterface;
|
||||
use SP\Http\JsonResponse;
|
||||
use SP\Modules\Web\Controllers\ControllerBase;
|
||||
@@ -40,15 +44,16 @@ use SP\Mvc\Controller\WebControllerHelper;
|
||||
*/
|
||||
final class SearchController extends ControllerBase
|
||||
{
|
||||
use JsonTrait, ItemTrait;
|
||||
use ItemTrait;
|
||||
use JsonTrait;
|
||||
|
||||
private \SP\Domain\User\Ports\UserServiceInterface $userService;
|
||||
private UserServiceInterface $userService;
|
||||
private UserGrid $userGrid;
|
||||
|
||||
public function __construct(
|
||||
Application $application,
|
||||
WebControllerHelper $webControllerHelper,
|
||||
\SP\Domain\User\Ports\UserServiceInterface $userService,
|
||||
UserServiceInterface $userService,
|
||||
UserGrid $userGrid
|
||||
) {
|
||||
parent::__construct($application, $webControllerHelper);
|
||||
@@ -63,9 +68,9 @@ final class SearchController extends ControllerBase
|
||||
* Search action
|
||||
*
|
||||
* @return bool
|
||||
* @throws \JsonException
|
||||
* @throws \SP\Core\Exceptions\ConstraintException
|
||||
* @throws \SP\Core\Exceptions\QueryException
|
||||
* @throws JsonException
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
public function searchAction(): bool
|
||||
{
|
||||
@@ -86,9 +91,9 @@ final class SearchController extends ControllerBase
|
||||
/**
|
||||
* getSearchGrid
|
||||
*
|
||||
* @return \SP\Html\DataGrid\DataGridInterface
|
||||
* @throws \SP\Core\Exceptions\ConstraintException
|
||||
* @throws \SP\Core\Exceptions\QueryException
|
||||
* @return DataGridInterface
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
protected function getSearchGrid(): DataGridInterface
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user