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