. */ namespace SP\Modules\Web\Controllers\AuthToken; use SP\Core\Application; use SP\Domain\Auth\Ports\AuthTokenService; use SP\Domain\CustomField\Ports\CustomFieldDataService; use SP\Modules\Web\Controllers\ControllerBase; use SP\Modules\Web\Controllers\Traits\JsonTrait; use SP\Modules\Web\Forms\AuthTokenForm; use SP\Mvc\Controller\ItemTrait; use SP\Mvc\Controller\WebControllerHelper; /** * A base class for all "save" actions */ abstract class AuthTokenSaveBase extends ControllerBase { use ItemTrait; use JsonTrait; protected CustomFieldDataService $customFieldService; protected AuthTokenService $authTokenService; protected AuthTokenForm $form; public function __construct( Application $application, WebControllerHelper $webControllerHelper, AuthTokenService $authTokenService, CustomFieldDataService $customFieldService ) { parent::__construct($application, $webControllerHelper); $this->checkLoggedIn(); $this->authTokenService = $authTokenService; $this->customFieldService = $customFieldService; $this->form = new AuthTokenForm($application, $this->request); } }