. */ namespace SP\Modules\Web\Controllers\Account; use SP\Core\Application; use SP\Domain\Account\Ports\AccountPresetService; use SP\Domain\Account\Ports\AccountService; use SP\Domain\CustomField\Ports\CustomFieldDataService; use SP\Modules\Web\Forms\AccountForm; use SP\Modules\Web\Forms\FormInterface; use SP\Mvc\Controller\ItemTrait; use SP\Mvc\Controller\WebControllerHelper; /** * Class AccountSaveBase */ abstract class AccountSaveBase extends AccountControllerBase { use ItemTrait; protected readonly FormInterface $accountForm; public function __construct( Application $application, WebControllerHelper $webControllerHelper, protected readonly AccountService $accountService, AccountPresetService $accountPresetService, protected readonly CustomFieldDataService $customFieldService ) { parent::__construct($application, $webControllerHelper); $this->accountForm = new AccountForm($application, $this->request, $accountPresetService); } }