. */ namespace SP\Modules\Web\Controllers\Client; use SP\Core\Application; use SP\Domain\Client\ClientServiceInterface; use SP\Domain\CustomField\CustomFieldServiceInterface; use SP\Modules\Web\Controllers\ControllerBase; use SP\Modules\Web\Forms\ClientForm; use SP\Mvc\Controller\WebControllerHelper; /** * Class ClientSaveBase */ abstract class ClientSaveBase extends ControllerBase { protected ClientServiceInterface $clientService; protected CustomFieldServiceInterface $customFieldService; protected ClientForm $form; public function __construct( Application $application, WebControllerHelper $webControllerHelper, ClientServiceInterface $clientService, CustomFieldServiceInterface $customFieldService ) { parent::__construct($application, $webControllerHelper); $this->checkLoggedIn(); $this->clientService = $clientService; $this->customFieldService = $customFieldService; $this->form = new ClientForm($application, $this->request); } }