. */ namespace SP\Modules\Web\Controllers\Client; use SP\Core\Application; use SP\Domain\Client\Ports\ClientService; use SP\Domain\CustomField\Ports\CustomFieldDataService; 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 ClientService $clientService; protected CustomFieldDataService $customFieldService; protected ClientForm $form; public function __construct( Application $application, WebControllerHelper $webControllerHelper, ClientService $clientService, CustomFieldDataService $customFieldService ) { parent::__construct($application, $webControllerHelper); $this->checkLoggedIn(); $this->clientService = $clientService; $this->customFieldService = $customFieldService; $this->form = new ClientForm($application, $this->request); } }