mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-11 10:56:58 +01:00
chore: Move interfaces into Domain
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\Account;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Account\Dtos\AccountRequest;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class CreateController
|
||||
@@ -74,8 +75,8 @@ final class CreateController extends AccountBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\Domain\Account\Dtos\AccountRequest
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return AccountRequest
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildAccountRequest(): AccountRequest
|
||||
{
|
||||
|
||||
@@ -26,10 +26,10 @@ namespace SP\Modules\Api\Controllers\Account;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class DeleteController
|
||||
|
||||
@@ -25,11 +25,12 @@
|
||||
namespace SP\Modules\Api\Controllers\Account;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Account\Dtos\AccountRequest;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class EditController
|
||||
@@ -73,8 +74,8 @@ final class EditController extends AccountBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\Domain\Account\Dtos\AccountRequest
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return AccountRequest
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildAccountRequest(): AccountRequest
|
||||
{
|
||||
|
||||
@@ -25,11 +25,12 @@
|
||||
namespace SP\Modules\Api\Controllers\Account;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Account\Dtos\AccountRequest;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class EditPassController
|
||||
@@ -75,8 +76,8 @@ final class EditPassController extends AccountBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\Domain\Account\Dtos\AccountRequest
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return AccountRequest
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildAccountRequest(): AccountRequest
|
||||
{
|
||||
|
||||
@@ -27,13 +27,14 @@ namespace SP\Modules\Api\Controllers\Account;
|
||||
use Exception;
|
||||
use Klein\Klein;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Application;
|
||||
use SP\Domain\Account\Ports\AccountSearchServiceInterface;
|
||||
use SP\Domain\Account\Search\AccountSearchConstants;
|
||||
use SP\Domain\Account\Search\AccountSearchFilter;
|
||||
use SP\Domain\Api\Ports\ApiServiceInterface;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Modules\Api\Controllers\ControllerBase;
|
||||
|
||||
/**
|
||||
@@ -78,8 +79,8 @@ final class SearchController extends ControllerBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\Domain\Account\Search\AccountSearchFilter
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return AccountSearchFilter
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildAccountSearchFilter(): AccountSearchFilter
|
||||
{
|
||||
|
||||
@@ -27,11 +27,11 @@ namespace SP\Modules\Api\Controllers\Account;
|
||||
|
||||
use Exception;
|
||||
use League\Fractal\Resource\Item;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Account\Dtos\AccountEnrichedDto;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Util\Util;
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,11 +26,11 @@ namespace SP\Modules\Api\Controllers\Account;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Crypt\Crypt;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class ViewController
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\Category;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\CategoryData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class CreateController
|
||||
@@ -71,8 +72,8 @@ final class CreateController extends CategoryBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\CategoryData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return CategoryData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildCategoryData(): CategoryData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,10 @@ namespace SP\Modules\Api\Controllers\Category;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class DeleteController
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\Category;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\CategoryData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
final class EditController extends CategoryBase
|
||||
{
|
||||
@@ -68,8 +69,8 @@ final class EditController extends CategoryBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\CategoryData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return CategoryData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildCategoryData(): CategoryData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,11 @@ namespace SP\Modules\Api\Controllers\Category;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -61,8 +62,8 @@ final class SearchController extends CategoryBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\ItemSearchData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return ItemSearchData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,10 @@ namespace SP\Modules\Api\Controllers\Category;
|
||||
|
||||
use Exception;
|
||||
use League\Fractal\Resource\Item;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Util\Util;
|
||||
|
||||
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\Client;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\ClientData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class CreateController
|
||||
@@ -71,8 +72,8 @@ final class CreateController extends ClientBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\ClientData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return ClientData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildClientData(): ClientData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,10 @@ namespace SP\Modules\Api\Controllers\Client;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class DeleteController
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\Client;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\ClientData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class EditController
|
||||
@@ -69,8 +70,8 @@ final class EditController extends ClientBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\ClientData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return ClientData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildClientData(): ClientData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,11 @@ namespace SP\Modules\Api\Controllers\Client;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -61,8 +62,8 @@ final class SearchController extends ClientBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\ItemSearchData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return ItemSearchData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,10 @@ namespace SP\Modules\Api\Controllers\Client;
|
||||
|
||||
use Exception;
|
||||
use League\Fractal\Resource\Item;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Util\Util;
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,12 +27,13 @@ namespace SP\Modules\Api\Controllers\Config;
|
||||
use Exception;
|
||||
use Klein\Klein;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Application;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Core\Exceptions\InvalidClassException;
|
||||
use SP\Domain\Api\Ports\ApiServiceInterface;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Export\Ports\FileBackupServiceInterface;
|
||||
use SP\Domain\Export\Services\BackupFiles;
|
||||
use SP\Modules\Api\Controllers\ControllerBase;
|
||||
@@ -48,7 +49,7 @@ final class BackupController extends ControllerBase
|
||||
private FileBackupServiceInterface $fileBackupService;
|
||||
|
||||
/**
|
||||
* @throws \SP\Core\Exceptions\InvalidClassException
|
||||
* @throws InvalidClassException
|
||||
*/
|
||||
public function __construct(
|
||||
Application $application,
|
||||
|
||||
@@ -28,12 +28,13 @@ namespace SP\Modules\Api\Controllers\Config;
|
||||
use Exception;
|
||||
use Klein\Klein;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Application;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Core\Exceptions\InvalidClassException;
|
||||
use SP\Domain\Api\Ports\ApiServiceInterface;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Export\Ports\XmlExportServiceInterface;
|
||||
use SP\Modules\Api\Controllers\ControllerBase;
|
||||
use SP\Modules\Api\Controllers\Help\ConfigHelp;
|
||||
@@ -46,7 +47,7 @@ final class ExportController extends ControllerBase
|
||||
private XmlExportServiceInterface $xmlExportService;
|
||||
|
||||
/**
|
||||
* @throws \SP\Core\Exceptions\InvalidClassException
|
||||
* @throws InvalidClassException
|
||||
*/
|
||||
public function __construct(
|
||||
Application $application,
|
||||
|
||||
@@ -30,13 +30,14 @@ use League\Fractal\Manager;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Application;
|
||||
use SP\Core\Bootstrap\BootstrapBase;
|
||||
use SP\Core\Context\ContextInterface;
|
||||
use SP\Core\Events\EventDispatcher;
|
||||
use SP\Core\Exceptions\SPException;
|
||||
use SP\Domain\Api\Ports\ApiServiceInterface;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Api\Services\JsonRpcResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Config\Ports\ConfigDataInterface;
|
||||
use SP\Domain\Core\Context\ContextInterface;
|
||||
use SP\Http\Json;
|
||||
|
||||
/**
|
||||
@@ -86,7 +87,7 @@ abstract class ControllerBase
|
||||
|
||||
/**
|
||||
* @throws SPException
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @throws ServiceException
|
||||
*/
|
||||
final protected function setupApi(int $actionId): void
|
||||
{
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\Tag;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\TagData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class CreateController
|
||||
@@ -71,8 +72,8 @@ final class CreateController extends TagBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\TagData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return TagData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildTagData(): TagData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,10 @@ namespace SP\Modules\Api\Controllers\Tag;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class DeleteController
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\Tag;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\TagData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class EditController
|
||||
@@ -69,8 +70,8 @@ final class EditController extends TagBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\TagData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return TagData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildTagData(): TagData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,11 @@ namespace SP\Modules\Api\Controllers\Tag;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -60,8 +61,8 @@ final class SearchController extends TagBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\ItemSearchData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return ItemSearchData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
{
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
namespace SP\Modules\Api\Controllers\Tag;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class ViewController
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\UserGroup;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\UserGroupData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class CreateController
|
||||
@@ -70,8 +71,8 @@ final class CreateController extends UserGroupBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\UserGroupData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return UserGroupData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildUserGroupData(): UserGroupData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,10 @@ namespace SP\Modules\Api\Controllers\UserGroup;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class DeleteController
|
||||
|
||||
@@ -26,11 +26,12 @@ namespace SP\Modules\Api\Controllers\UserGroup;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\UserGroupData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class EditController
|
||||
@@ -72,8 +73,8 @@ final class EditController extends UserGroupBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\UserGroupData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return UserGroupData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildUserGroupData(): UserGroupData
|
||||
{
|
||||
|
||||
@@ -26,10 +26,11 @@ namespace SP\Modules\Api\Controllers\UserGroup;
|
||||
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -59,8 +60,8 @@ final class SearchController extends UserGroupBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \SP\DataModel\ItemSearchData
|
||||
* @throws \SP\Domain\Common\Services\ServiceException
|
||||
* @return ItemSearchData
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
{
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
namespace SP\Modules\Api\Controllers\UserGroup;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
|
||||
/**
|
||||
* Class ViewController
|
||||
|
||||
Reference in New Issue
Block a user