Files
b2b.redline.com.pl/modules/ps_eventbus/controllers/front/apiCustomProductCarriers.php
2025-06-24 14:14:35 +02:00

26 lines
771 B
PHP

<?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);
}
}