. */ namespace SP\Modules\Web\Controllers\PublicLink; use SP\Core\Application; use SP\Domain\Account\Ports\PublicLinkServiceInterface; use SP\Modules\Web\Controllers\ControllerBase; use SP\Modules\Web\Forms\PublicLinkForm; use SP\Mvc\Controller\WebControllerHelper; /** * Class PublicLinkSaveBase */ abstract class PublicLinkSaveBase extends ControllerBase { protected PublicLinkServiceInterface $publicLinkService; protected PublicLinkForm $form; public function __construct( Application $application, WebControllerHelper $webControllerHelper, PublicLinkServiceInterface $publicLinkService ) { parent::__construct($application, $webControllerHelper); $this->checkLoggedIn(); $this->publicLinkService = $publicLinkService; $this->form = new PublicLinkForm($application, $this->request); } }