. */ namespace SP\Modules\Api\Controllers\Account; use Klein\Klein; use SP\Core\Application; use SP\Domain\Account\Ports\AccountAdapter; use SP\Domain\Account\Ports\AccountPresetService; use SP\Domain\Account\Ports\AccountService; use SP\Domain\Api\Ports\ApiService; use SP\Domain\Core\Acl\AclInterface; use SP\Domain\Core\Exceptions\InvalidClassException; use SP\Domain\CustomField\Ports\CustomFieldDataService; use SP\Modules\Api\Controllers\ControllerBase; use SP\Modules\Api\Controllers\Help\AccountHelp; /** * Class AccountViewBase */ abstract class AccountBase extends ControllerBase { protected AccountPresetService $accountPresetService; protected AccountService $accountService; protected CustomFieldDataService $customFieldService; protected AccountAdapter $accountAdapter; /** * @throws InvalidClassException */ public function __construct( Application $application, Klein $router, ApiService $apiService, AclInterface $acl, AccountPresetService $accountPresetService, AccountService $accountService, CustomFieldDataService $customFieldService, AccountAdapter $accountAdapter ) { parent::__construct($application, $router, $apiService, $acl); $this->accountPresetService = $accountPresetService; $this->accountService = $accountService; $this->customFieldService = $customFieldService; $this->accountAdapter = $accountAdapter; $this->apiService->setHelpClass(AccountHelp::class); } }