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,17 +26,19 @@ namespace SP\Modules\Web\Controllers\ConfigLdap;
use Exception;
use JsonException;
use Klein\Klein;
use SP\Core\Acl\Acl;
use SP\Core\Acl\AclActionsInterface;
use SP\Core\Acl\UnauthorizedPageException;
use SP\Core\Application;
use SP\Core\Events\Event;
use SP\Core\Events\EventMessage;
use SP\Core\Exceptions\CheckException;
use SP\Core\Exceptions\SessionTimeout;
use SP\Core\Exceptions\SPException;
use SP\Core\Exceptions\ValidationException;
use SP\Core\PhpExtensionChecker;
use SP\Domain\Core\Acl\AclActionsInterface;
use SP\Domain\Core\UI\ThemeInterface;
use SP\Domain\Import\Ports\LdapImportServiceInterface;
use SP\Domain\Import\Services\LdapImportParams;
@@ -50,7 +52,8 @@ use SP\Modules\Web\Controllers\Traits\JsonTrait;
*/
final class ImportController extends SimpleControllerBase
{
use JsonTrait, ConfigLdapTrait;
use ConfigLdapTrait;
use JsonTrait;
private LdapImportServiceInterface $ldapImportService;
@@ -72,7 +75,7 @@ final class ImportController extends SimpleControllerBase
* importAction
*
* @return bool
* @throws \JsonException
* @throws JsonException
*/
public function importAction(): bool
{
@@ -129,7 +132,7 @@ final class ImportController extends SimpleControllerBase
/**
* @return array
* @throws \SP\Core\Exceptions\ValidationException
* @throws ValidationException
*/
private function getImportParams(): array
{
@@ -158,8 +161,8 @@ final class ImportController extends SimpleControllerBase
/**
* @return void
* @throws \JsonException
* @throws \SP\Core\Exceptions\SessionTimeout
* @throws JsonException
* @throws SessionTimeout
*/
protected function initialize(): void
{