Current path: home/webdevt/www/schtroumpf.fr/modules/ps_eventbus/controllers/front/
?? Go up: /home/webdevt/www/schtroumpf.fr/modules/ps_eventbus/controllers
<?php
use PrestaShop\Module\PsEventbus\Config\Config;
use PrestaShop\Module\PsEventbus\Controller\AbstractApiController;
use PrestaShop\Module\PsEventbus\Provider\CustomProductCarrierDataProvider;
class ps_EventbusApiCustomProductCarriersModuleFrontController extends AbstractApiController
{
public $type = Config::COLLECTION_CUSTOM_PRODUCT_CARRIERS;
/**
* @return void
*
* @throws PrestaShopException
*/
public function postProcess()
{
/** @var CustomProductCarrierDataProvider $categoryDataProvider */
$categoryDataProvider = $this->module->getService(CustomProductCarrierDataProvider::class);
$response = $this->handleDataSync($categoryDataProvider);
$this->exitWithResponse($response);
}
}