* @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ require_once dirname(__FILE__) . '/../../bootstrap.php'; class RetailcrmSettingsController extends RetailcrmAdminPostAbstractController { protected function postHandler() { $settings = new RetailcrmSettings($this->module); return $settings->save(); } protected function getHandler() { return [ 'success' => true, 'settings' => RetailcrmSettingsHelper::getSettings(), ]; } }