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

@@ -25,10 +25,13 @@
namespace SP\Modules\Web\Controllers\Track;
use SP\Core\Acl\AclActionsInterface;
use JsonException;
use SP\Core\Acl\UnauthorizedActionException;
use SP\Core\Application;
use SP\Core\Exceptions\ConstraintException;
use SP\Core\Exceptions\QueryException;
use SP\Core\Exceptions\SPException;
use SP\Domain\Core\Acl\AclActionsInterface;
use SP\Domain\Security\Ports\TrackServiceInterface;
use SP\Html\DataGrid\DataGridInterface;
use SP\Modules\Web\Controllers\ControllerBase;
@@ -42,7 +45,8 @@ use SP\Mvc\Controller\WebControllerHelper;
*/
final class SearchController extends ControllerBase
{
use JsonTrait, ItemTrait;
use ItemTrait;
use JsonTrait;
private TrackServiceInterface $trackService;
private TrackGrid $trackGrid;
@@ -65,10 +69,10 @@ final class SearchController extends ControllerBase
* Search action
*
* @return bool
* @throws \JsonException
* @throws \SP\Core\Acl\UnauthorizedActionException
* @throws \SP\Core\Exceptions\ConstraintException
* @throws \SP\Core\Exceptions\QueryException
* @throws JsonException
* @throws UnauthorizedActionException
* @throws ConstraintException
* @throws QueryException
*/
public function searchAction(): bool
{
@@ -86,9 +90,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
{