chore: Adapt to hexagonal architecture pattern.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-26 19:45:53 +01:00
parent ae16c0ad76
commit 5952a3f48a
518 changed files with 2821 additions and 1768 deletions

View File

@@ -31,8 +31,8 @@ use SP\Core\Application;
use SP\Core\Exceptions\ConstraintException;
use SP\Core\Exceptions\QueryException;
use SP\DataModel\NotificationData;
use SP\Domain\Notification\NotificationServiceInterface;
use SP\Domain\User\UserServiceInterface;
use SP\Domain\Notification\Ports\NotificationServiceInterface;
use SP\Domain\User\Ports\UserServiceInterface;
use SP\Infrastructure\Common\Repositories\NoSuchItemException;
use SP\Modules\Web\Controllers\ControllerBase;
use SP\Mvc\Controller\WebControllerHelper;
@@ -49,7 +49,7 @@ abstract class NotificationViewBase extends ControllerBase
public function __construct(
Application $application,
WebControllerHelper $webControllerHelper,
NotificationServiceInterface $notificationService,
\SP\Domain\Notification\Ports\NotificationServiceInterface $notificationService,
UserServiceInterface $userService
) {
parent::__construct($application, $webControllerHelper);
@@ -97,4 +97,4 @@ abstract class NotificationViewBase extends ControllerBase
$this->view->assign('readonly', false);
}
}
}
}