. */ namespace SP\Modules\Web\Controllers\AuthToken; use SP\Core\Application; use SP\Domain\Auth\AuthTokenServiceInterface; use SP\Domain\CustomField\CustomFieldServiceInterface; 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 JsonTrait, ItemTrait; protected CustomFieldServiceInterface $customFieldService; protected AuthTokenServiceInterface $authTokenService; protected AuthTokenForm $form; public function __construct( Application $application, WebControllerHelper $webControllerHelper, AuthTokenServiceInterface $authTokenService, CustomFieldServiceInterface $customFieldService, ) { parent::__construct($application, $webControllerHelper); $this->checkLoggedIn(); $this->authTokenService = $authTokenService; $this->customFieldService = $customFieldService; $this->form = new AuthTokenForm($application, $this->request); } }