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,9 +26,10 @@ namespace SP\Modules\Web\Controllers\Plugin;
use Exception;
use SP\Core\Acl\AclActionsInterface;
use JsonException;
use SP\Core\Application;
use SP\Core\Events\Event;
use SP\Domain\Core\Acl\AclActionsInterface;
use SP\Domain\Plugin\Ports\PluginServiceInterface;
use SP\Http\JsonResponse;
use SP\Modules\Web\Controllers\ControllerBase;
@@ -41,9 +42,10 @@ use SP\Mvc\Controller\WebControllerHelper;
*/
final class DeleteController extends ControllerBase
{
use JsonTrait, ItemTrait;
use ItemTrait;
use JsonTrait;
private \SP\Domain\Plugin\Ports\PluginServiceInterface $pluginService;
private PluginServiceInterface $pluginService;
public function __construct(
Application $application,
@@ -63,7 +65,7 @@ final class DeleteController extends ControllerBase
* @param int|null $id
*
* @return bool
* @throws \JsonException
* @throws JsonException
*/
public function deleteAction(?int $id = null): bool
{